Fixes #370 (bug introduced)

This commit is contained in:
Quentin McGaw
2021-02-07 18:15:31 +00:00
parent b1f1f94a76
commit 3e527fee8b

View File

@@ -94,7 +94,7 @@ func readCustomPort(env params.Env, protocol string,
return 0, fmt.Errorf("%w: port %d for TCP protocol", ErrInvalidPort, port)
case constants.UDP:
for i := range allowedUDP {
if allowedTCP[i] == port {
if allowedUDP[i] == port {
return port, nil
}
}