Skip to content

Commit

Permalink
fix: conditional tcp sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Dec 9, 2024
1 parent 9b887ea commit 80e8895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/node/libp2p/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func Transports(tptConfig config.Transports) interface{} {
opts.Opts = append(opts.Opts, libp2p.Transport(webrtc.New))
}

if tcpEnabled || wsEnabled {
if tcpEnabled && wsEnabled {
opts.Opts = append(opts.Opts, libp2p.ShareTCPListener())
}

Expand Down

0 comments on commit 80e8895

Please sign in to comment.