Skip to content

Commit

Permalink
fix: add info log indicating that hole punching has been disabled whe…
Browse files Browse the repository at this point in the history
…n it is left as the default but the relay client is disabled.
  • Loading branch information
aschmahmann committed May 3, 2022
1 parent 346fd9d commit 185971b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/node/libp2p/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ func HolePunching(flag config.Flag, hasRelayClient bool) func() (opts Libp2pOpts
// otherwise just silently disable hole punching
if flag != config.Default {
log.Fatal("Failed to enable `Swarm.EnableHolePunching`, it requires `Swarm.RelayClient.Enabled` to be true.")
} else {
log.Info("HolePunching has been disabled due to the RelayClient being disabled.")
}
return
}
Expand Down

0 comments on commit 185971b

Please sign in to comment.