mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 03:48: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()
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
//! - WebSockets for addresses of the form `/ip4/1.2.3.4/tcp/5/ws`. A TCP/IP connection is open and
|
||||
//! the WebSockets protocol is negotiated on top. Communications then happen inside WebSockets data
|
||||
//! frames. Encryption and multiplexing are additionally negotiated again inside this channel.
|
||||
//! - DNS for addresses of the form `/dns4/example.com/tcp/5` or `/dns4/example.com/tcp/5/ws`. A
|
||||
//! - DNS for addresses of the form `/dns/example.com/tcp/5` or `/dns/example.com/tcp/5/ws`. A
|
||||
//! node's address can contain a domain name.
|
||||
//! - (All of the above using IPv6 instead of IPv4.)
|
||||
//!
|
||||
|
||||
Reference in New Issue
Block a user