Log an info message on startup to indicate if IPv6 peer connectivity is possible (#6750)

Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
pull/6761/head
Matt Whitehead 8 months ago committed by GitHub
parent cc201691f9
commit 42b32d2531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java

@ -151,7 +151,11 @@ public abstract class PeerDiscoveryAgent {
if (config.isActive()) {
final String host = config.getBindHost();
final int port = config.getBindPort();
LOG.info("Starting peer discovery agent on host={}, port={}", host, port);
LOG.info(
"Starting peer discovery agent on host={}, port={}. IPv6 {}.",
host,
port,
NetworkUtility.isIPv6Available() ? "available" : "not available");
// override advertised host if we detect an external IP address via NAT manager
this.advertisedAddress = natService.queryExternalIPAddress(config.getAdvertisedHost());

Loading…
Cancel
Save