diff options
author | Ermal <eri@pfsense.org> | 2010-11-30 16:47:32 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-30 16:47:32 +0000 |
commit | b0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d (patch) | |
tree | 6c12111c5903ba7459144eab17766d3bccd43675 /etc | |
parent | 0ac206f9db73c40e74c05c01f64067a4cc7ecd93 (diff) | |
download | pfsense-b0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d.zip pfsense-b0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d.tar.gz |
Ticket #911. Provide an option under system->advanced->misc to disable killing states when a gateway goes down. Possibly on 2.1+ this might be made an option specific for each gateway!
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 9c4aa1a..0601cf2 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -145,6 +145,9 @@ function filter_configure() { function filter_delete_states_for_down_gateways() { global $config, $GatewaysList; + if (isset($config['system']['kill_states'])) + return; + $a_gateways = return_gateways_status(); if (is_array($GatewaysList)) { foreach ($GatewaysList as $gwname => $gateway) { @@ -2739,4 +2742,4 @@ function discover_pkg_rules($ruletype) { // vim: ts=4 sw=4 noexpandtab -?>
\ No newline at end of file +?> |