diff options
author | Ermal <eri@pfsense.org> | 2010-05-25 20:34:30 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-25 20:35:46 +0000 |
commit | 63276ecd08bd7cdbf8b7506c4e49d6b9d8d658f6 (patch) | |
tree | 55dd7991f3ec6c2cf9a5cac35f4e5743e350ce0e /etc/inc | |
parent | 89e52df87f770ce191fa78e307afde080d6c22e4 (diff) | |
download | pfsense-63276ecd08bd7cdbf8b7506c4e49d6b9d8d658f6.zip pfsense-63276ecd08bd7cdbf8b7506c4e49d6b9d8d658f6.tar.gz |
Correctly teardown states for down gateways.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index f01faee..ee9317e 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -142,11 +142,11 @@ function filter_configure() { function delete_states_for_down_gateways() { global $config; - $a_gateways = return_gateways_array(); + $a_gateways = return_gateways_status(); foreach ($a_gateways as $gateway) { - if($gateway['monitor'] == "down") { + if ($gateway['status'] == "down") { $int_ip = get_interface_ip($gateway['interface']); - if($int_ip) + if(is_ipaddr($int_ip)) mwexec("/sbin/pfctl -b {$int_ip}"); } } |