feat: allow dialing wss peers using DNS multiaddrs

This commit is contained in:
Adin Schmahmann 2022-06-08 23:02:28 -04:00
parent 884028550c
commit 4dd3b0758f
1 changed files with 1 additions and 1 deletions

View File

@ -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")