diff options
author | Ermal <eri@pfsense.org> | 2010-04-30 21:44:31 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-04-30 21:44:31 +0000 |
commit | fe538f56732747eabcb357efd862264590d530e0 (patch) | |
tree | 538b7a47479f00970455d3479c58041f2ce613a3 /usr/local | |
parent | cbdcd1881175f7d2c8f151cbe58aa397635197b4 (diff) | |
download | pfsense-fe538f56732747eabcb357efd862264590d530e0.zip pfsense-fe538f56732747eabcb357efd862264590d530e0.tar.gz |
Save gateway data when weight changes on dynamic gateways.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 8872a48..aab9204 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -149,7 +149,7 @@ if ($_POST) { if (!$input_errors) { $reloadif = false; /* if we are processing a system gateway only save the monitorip */ - if($_POST['weight'] == 1 && (($_POST['attribute'] == "system" && empty($_POST['defaultgw'])) || (empty($_POST['interface']) && empty($_POST['gateway']) && empty($_POST['defaultgw'])))) { + if ($_POST['weight'] == 1 && (($_POST['attribute'] == "system" && empty($_POST['defaultgw'])) || (empty($_POST['interface']) && empty($_POST['gateway']) && empty($_POST['defaultgw'])))) { if (is_ipaddr($_POST['monitor'])) { if (empty($_POST['interface'])) $interface = $pconfig['friendlyiface']; |