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; }