fix one warning

This commit is contained in:
rustdesk 2023-01-09 18:45:38 +08:00
parent f2ff1d2da1
commit 12b02514a4

View File

@ -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(),