From 00357f4ed2a348966cf0cde4f3ea06c99e0e9217 Mon Sep 17 00:00:00 2001 From: Matthew Whitehead Date: Mon, 18 Mar 2024 09:29:23 +0000 Subject: [PATCH] Log an info message on startup to indicate if IPv6 peer connectivity is possible Signed-off-by: Matthew Whitehead --- .../besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java index b93846bfbe1..d1f17b5304e 100644 --- a/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java +++ b/ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryAgent.java @@ -151,7 +151,11 @@ public CompletableFuture start(final int tcpPort) { 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());