From b0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 30 Nov 2010 16:47:32 +0000 Subject: 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! --- etc/inc/filter.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'etc') 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 +?> -- cgit v1.1