Skip to content

Commit

Permalink
Log an info message on startup to indicate if IPv6 peer connectivity …
Browse files Browse the repository at this point in the history
…is possible (hyperledger#6750)

Signed-off-by: Matthew Whitehead <[email protected]>
  • Loading branch information
matthew1001 authored Mar 19, 2024
1 parent cc20169 commit 42b32d2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ public CompletableFuture<Integer> 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());
Expand Down

0 comments on commit 42b32d2

Please sign in to comment.