Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Anderson <[email protected]>
  • Loading branch information
dmikey committed May 3, 2024
1 parent 6efbca6 commit 31dd880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func New(log zerolog.Logger, address string, port uint, options ...func(*Config)
libp2p.NATPortMap(),
}

if tlsConfig != nil {
if cfg.Websocket {
opts = append(opts, libp2p.Transport(ws.New, ws.WithTLSConfig(tlsConfig)))
}

Expand Down

0 comments on commit 31dd880

Please sign in to comment.