Use /dns/ instead of /dns4/ (#6369)

This commit is contained in:
Pierre Krieger
2020-06-16 22:49:44 +02:00
committed by GitHub
parent b4221cc135
commit 0787b189fa
4 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -324,7 +324,8 @@ impl DiscoveryBehaviour {
let ip = match addr.iter().next() {
Some(Protocol::Ip4(ip)) => IpNetwork::from(ip),
Some(Protocol::Ip6(ip)) => IpNetwork::from(ip),
Some(Protocol::Dns4(_)) | Some(Protocol::Dns6(_)) => return true,
Some(Protocol::Dns(_)) | Some(Protocol::Dns4(_)) | Some(Protocol::Dns6(_))
=> return true,
_ => return false
};
ip.is_global()