diff options
author | 2003-04-25 17:36:33 +0000 | |
---|---|---|
committer | 2003-04-25 17:36:33 +0000 | |
commit | 5333b32d6bd238b57f1b6de8c7fb33987cf22a7e (patch) | |
tree | 2745b3060c6d41bbb7505166fd30af3a61a629dd | |
parent | add missing .El's for .Bl macros; (diff) | |
download | wireguard-openbsd-5333b32d6bd238b57f1b6de8c7fb33987cf22a7e.tar.xz wireguard-openbsd-5333b32d6bd238b57f1b6de8c7fb33987cf22a7e.zip |
Properly copy the second part of nat proxy port range, when specified.
ok henning@
-rw-r--r-- | sbin/pfctl/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index bd94783e0e1..76bf7b7c24e 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.367 2003/04/15 11:29:24 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.368 2003/04/25 17:36:33 dhartmei Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -2433,6 +2433,7 @@ natrule : nataction interface af proto fromto redirpool pooltype ntohs($6->rport.b); break; case PF_NAT: + r.rpool.proxy_port[1] = ntohs($6->rport.b); if (!r.rpool.proxy_port[0] && !r.rpool.proxy_port[1]) { r.rpool.proxy_port[0] = |