mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 04:28:01 +00:00
Use /dns/ instead of /dns4/ (#6369)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user