Skip to content

Commit

Permalink
feat: allow dialing wss peers using DNS multiaddrs
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Jun 20, 2022
1 parent 8840285 commit 4dd3b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/websocket/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4dd3b07

Please sign in to comment.