diff options
author | smos <seth.mos@dds.nl> | 2011-11-27 18:56:24 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-11-27 20:09:48 +0100 |
commit | 16106d2e4b7f793badb5dc235f3e1622d15b93a8 (patch) | |
tree | dd41505985b40e21b4b7279f95bce2b5d20eae09 /usr/local/www/system_gateways_edit.php | |
parent | c8423ac04ab12d8b7111752e93f83250cd05bc7e (diff) | |
download | pfsense-16106d2e4b7f793badb5dc235f3e1622d15b93a8.zip pfsense-16106d2e4b7f793badb5dc235f3e1622d15b93a8.tar.gz |
Fix for redmine ticket #1993. Allow saving multiple dynamic entries.
Make sure that return_gateways_status() also returns all gateways that have monitoring disabled as up.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 810def7..2d15804 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -222,18 +222,6 @@ if ($_POST) { } if (!$input_errors) { - if (!($_POST['weight'] > 1 || $_POST['latencylow'] || $_POST['latencyhigh'] || - $_POST['losslow'] || $_POST['losshigh'] || $_POST['down'] || - $_POST['defaultgw'] || is_ipaddr($_POST['monitor']) || is_ipaddr($_POST['gateway']))) { - /* Delete from config if gw is dynamic and user is not saving any additional gateway data that system doesn't know */ - if (isset($id) && $a_gateway_item[$id]) - unset($a_gateway_item[$id]); - write_config(); - header("Location: system_gateways.php"); - exit; - } - - $reloadif = ""; $gateway = array(); |