From be982d8617aedcb2658fe46bfe48315f813b5e5d Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 6 Sep 2023 08:37:15 -0400 Subject: [PATCH] chore: add tls/ws to address factory --- waku/v2/node/wakuoptions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waku/v2/node/wakuoptions.go b/waku/v2/node/wakuoptions.go index 57829670..da3578e2 100644 --- a/waku/v2/node/wakuoptions.go +++ b/waku/v2/node/wakuoptions.go @@ -190,8 +190,11 @@ func WithDns4Domain(dns4Domain string) WakuNodeOption { if params.enableWS || params.enableWSS { if params.enableWSS { + // WSS is deprecated in https://github.com/multiformats/multiaddr/pull/109 wss, _ := multiaddr.NewMultiaddr(fmt.Sprintf("/tcp/%d/wss", params.wssPort)) addresses = append(addresses, hostAddrMA.Encapsulate(wss)) + tlsws, _ := multiaddr.NewMultiaddr(fmt.Sprintf("/tcp/%d/tls/ws", params.wssPort)) + addresses = append(addresses, hostAddrMA.Encapsulate(tlsws)) } else { ws, _ := multiaddr.NewMultiaddr(fmt.Sprintf("/tcp/%d/ws", params.wsPort)) addresses = append(addresses, hostAddrMA.Encapsulate(ws))