Skip to content

Commit a7892f6

Browse files
fix(libp2p): always enable websocket transport for dialing
1 parent 9a4660e commit a7892f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/p2p/libp2p/libp2p.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ func New(ctx context.Context, signer beecrypto.Signer, networkID uint64, overlay
426426
if o.EnableWSS {
427427
wsOpt := ws.WithTLSConfig(certManager.TLSConfig())
428428
transports = append(transports, libp2p.Transport(ws.New, wsOpt))
429-
} else if o.EnableWS {
429+
} else {
430430
transports = append(transports, libp2p.Transport(ws.New))
431431
}
432432

0 commit comments

Comments
 (0)