diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-06-13 23:54:39 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-06-13 23:54:39 +0000 |
commit | f78a5d1f9164026668e867f0fb7d15e0b88c1f1b (patch) | |
tree | 8c8c9f1a92e0a530f026d23a2cc1979e3cc72b03 | |
parent | 39f0cf1dc7b38cba9be657c81e41c0c6a111652a (diff) | |
download | pfsense-f78a5d1f9164026668e867f0fb7d15e0b88c1f1b.zip pfsense-f78a5d1f9164026668e867f0fb7d15e0b88c1f1b.tar.gz |
trim spaces for proper evaluation. This fixes loadbalancer/gateway rule negation for local and vpn networks
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index c2018aa..b5db8fd 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2212,7 +2212,7 @@ function generate_user_filter_rule($rule, $ngcounter) { /* exception(s) to a user rules can go here. */ /* rules with a gateway or pool should create another rule for routing to local networks or vpns */ /* we only trigger this for a rule with the destination of any and without a gateway */ - if (($aline['route'] <> "") && ($aline['type'] == "pass") && ($dst == "any") && (! interface_has_gateway($aline['interface']))) { + if (($aline['route'] <> "") && (trim($aline['type']) == "pass") && (trim($dst) == "any")) { /* negate VPN/PPTP/PPPoE networks for load balancer rules */ $vpns = " to <vpns> "; $line .= $aline['type'] . $aline['direction'] . $aline['log'] . $aline['quick'] . $aline['interface'] . $aline['prot'] . |