fix remote addr checker

This commit is contained in:
zephyr
2022-04-28 20:50:29 +09:00
parent 09eb4a5ca7
commit febc5507fc
3 changed files with 3 additions and 3 deletions
Generated
+1 -1
View File
@@ -812,7 +812,7 @@ dependencies = [
[[package]]
name = "realm"
version = "2.2.1"
version = "2.2.2"
dependencies = [
"cfg-if",
"chrono",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "realm"
version = "2.2.1"
version = "2.2.2"
authors = ["zhboner <zhboner@gmail.com>"]
edition = "2021"
+1 -1
View File
@@ -53,7 +53,7 @@ impl EndpointConf {
let port = iter.next().unwrap().parse::<u16>().unwrap();
let addr = iter.next().unwrap().to_string();
// test addr
let _ = addr.to_socket_addrs().unwrap().next().unwrap();
remote.to_socket_addrs().unwrap().next().unwrap();
RemoteAddr::DomainName(addr, port)
}
}