mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Import upstream r2446: allow to configre "any" remote port for port redirection rule as supported by libalias(3). PR: 261802 Reported by: Martin Birgmeier
13 lines
466 B
C
13 lines
466 B
C
Index: src/nat.c
|
|
===================================================================
|
|
--- src/nat.c (revision 2445)
|
|
+++ src/nat.c (revision 2446)
|
|
@@ -192,7 +192,7 @@ NatSetCommand(Context ctx, int ac, const char *const a
|
|
if (!inet_aton (av[5], &r_addr))
|
|
Error("bad remote IP address \"%s\"", av[5]);
|
|
rp = atoi(av[6]);
|
|
- if (rp <= 0 || rp > 65535)
|
|
+ if (rp < 0 || rp > 65535)
|
|
Error("Incorrect remote port number \"%s\"", av[6]);
|
|
}
|
|
/* OK */
|