From 0d2599fac7e5414725f133ed1b3ed4b23f349463 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Thu, 6 Dec 2018 13:33:01 -0600 Subject: [PATCH] ignoring the reported port for the moment --- src/server/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api.rs b/src/server/api.rs index 04c3439..b8e3697 100644 --- a/src/server/api.rs +++ b/src/server/api.rs @@ -31,7 +31,7 @@ fn parse_remote_info(remote_info: &str) -> Result { let mut remote_address = String::from(remote_info); if remote_address.contains(":") { let last_colon_index = remote_address.rfind(":").unwrap(); - let port = remote_address.split_off(last_colon_index); + let _port = remote_address.split_off(last_colon_index); if remote_address.starts_with("[") && remote_address.ends_with("]") { remote_address = String::from(remote_address.trim_matches(|c| c == '[' || c == ']')) }