Skip to content

Commit 11cfa56

Browse files
committed
renamed port variable
1 parent 7c0d145 commit 11cfa56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config/delegate/ServerDelegate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public void applyDelegate(Config config) {
4545
}
4646
}
4747

48-
private int parsePort(Integer portStr) {
49-
if (portStr == null) {
48+
private int parsePort(Integer port) {
49+
if (port == null) {
5050
throw new ParameterException("Port must be set, but was not specified");
5151
}
52-
if (portStr < 0 || portStr > 65535) {
52+
if (port < 0 || port > 65535) {
5353
throw new ParameterException("Port must be in interval [0,65535], but is " + port);
5454
}
55-
return portStr;
55+
return port;
5656
}
5757
}

0 commit comments

Comments
 (0)