From e423bd3f3d2fb7c9353ac8fedcb4646f64f319cc Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Mon, 1 Jul 2024 11:20:00 -0700 Subject: [PATCH] fix --- .../teku/networking/p2p/network/config/NetworkConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/network/config/NetworkConfig.java b/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/network/config/NetworkConfig.java index 7f506cd9e57..2dce9abd3d5 100644 --- a/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/network/config/NetworkConfig.java +++ b/networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/network/config/NetworkConfig.java @@ -313,14 +313,14 @@ public Builder listenPort(final int listenPort) { } public Builder listenPortIpv6(final int listenPortIpv6) { - validatePort(listenPortIpv6, "-Xp2p-port-ipv6"); + validatePort(listenPortIpv6, "--Xp2p-port-ipv6"); this.listenPortIpv6 = listenPortIpv6; return this; } public Builder advertisedPort(final OptionalInt advertisedPort) { checkNotNull(advertisedPort); - advertisedPort.ifPresent(port -> validatePort(port, "--p2p-advertised-ip")); + advertisedPort.ifPresent(port -> validatePort(port, "--p2p-advertised-port")); this.advertisedPort = advertisedPort; return this; }