Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jul 1, 2024
1 parent f545f93 commit e423bd3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e423bd3

Please sign in to comment.