diff --git a/transports/websocket/src/framed.rs b/transports/websocket/src/framed.rs index 2c11e48cbe0..182b81ab68b 100644 --- a/transports/websocket/src/framed.rs +++ b/transports/websocket/src/framed.rs @@ -373,7 +373,7 @@ fn location_to_multiaddr(location: &str) -> Result> { let mut a = Multiaddr::empty(); match url.host() { Some(url::Host::Domain(h)) => { - a.push(Protocol::Dns4(h.into())) + a.push(Protocol::Dns(h.into())) } Some(url::Host::Ipv4(ip)) => { a.push(Protocol::Ip4(ip))