diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-02-14 06:45:56 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-02-14 06:45:56 +0000 |
commit | 1ae652df3ceb6134829e4177ca80761b59046bb1 (patch) | |
tree | ff06ede54da12275b18288bec1e301ce5f53d2e5 /etc | |
parent | 521cfa2f84230f2d9c61035386cdb9b98cbf4b8c (diff) | |
download | pfsense-1ae652df3ceb6134829e4177ca80761b59046bb1.zip pfsense-1ae652df3ceb6134829e4177ca80761b59046bb1.tar.gz |
Do not try to convert twice to real interface return_gateways_array tries to fill the right real interface. Add the needed error checking.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 23f0f13..b4a2439 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1318,7 +1318,10 @@ function generate_user_filter_rule($rule) $gateway = $rule['gateway']; if(!is_ipaddr($rule['gateway'])) { $gwip = $GatewaysList[$rule['gateway']]['gateway']; - $int = get_real_interface($GatewaysList[$gateway]['interface']); + if ($GatewaysList[$gateway]['interface']) + $int = $GatewaysList[$gateway]['interface']; + else + $int = ""; } else { $gwip = $rule['gateway']; $int = guess_interface_from_ip($rule['gateway']); |