Skip to content

Commit deb2a67

Browse files
committed
fix: add info log indicating that hole punching has been disabled when it is left as the default but the relay client is disabled.
1 parent 5a4d5ab commit deb2a67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/node/libp2p/relay.go

+2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ func HolePunching(flag config.Flag, hasRelayClient bool) func() (opts Libp2pOpts
7575
// otherwise just silently disable hole punching
7676
if flag != config.Default {
7777
log.Fatal("Failed to enable `Swarm.EnableHolePunching`, it requires `Swarm.RelayClient.Enabled` to be true.")
78+
} else {
79+
log.Info("HolePunching has been disabled due to the RelayClient being disabled.")
7880
}
7981
return
8082
}

0 commit comments

Comments
 (0)