fix one warning
This commit is contained in:
parent
f2ff1d2da1
commit
12b02514a4
@ -56,7 +56,7 @@ pub fn test_if_valid_server(host: &str) -> String {
|
||||
match Config::get_network_type() {
|
||||
NetworkType::Direct => match host.to_socket_addrs() {
|
||||
Err(err) => err.to_string(),
|
||||
Ok(x) => "".to_owned(),
|
||||
Ok(_) => "".to_owned(),
|
||||
},
|
||||
NetworkType::ProxySocks => match &host.into_target_addr() {
|
||||
Err(err) => err.to_string(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user