feat: allow dialing wss peers using DNS multiaddrs
This commit is contained in:
parent
884028550c
commit
4dd3b0758f
|
@ -23,7 +23,7 @@ var WsFmt = mafmt.And(mafmt.TCP, mafmt.Base(ma.P_WS))
|
|||
|
||||
// This is _not_ WsFmt because we want the transport to stick to dialing fully
|
||||
// resolved addresses.
|
||||
var dialMatcher = mafmt.And(mafmt.IP, mafmt.Base(ma.P_TCP), mafmt.Or(mafmt.Base(ma.P_WS), mafmt.Base(ma.P_WSS)))
|
||||
var dialMatcher = mafmt.And(mafmt.Or(mafmt.IP, mafmt.DNS), mafmt.Base(ma.P_TCP), mafmt.Or(mafmt.Base(ma.P_WS), mafmt.Base(ma.P_WSS)))
|
||||
|
||||
func init() {
|
||||
manet.RegisterFromNetAddr(ParseWebsocketNetAddr, "websocket")
|
||||
|
|
Loading…
Reference in New Issue