summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-07 20:52:32 +0000
committerErmal <eri@pfsense.org>2010-06-07 20:52:32 +0000
commit5a5447ababab25d6eb2bc849d21d5850d425d0b9 (patch)
tree2d195dbc70be421180ec2994c694ac7a9ec8ccbf /usr/local/www/system_gateways_edit.php
parent4b4be09e1da47dfbe789818cc25e74c6e092f601 (diff)
downloadpfsense-5a5447ababab25d6eb2bc849d21d5850d425d0b9.zip
pfsense-5a5447ababab25d6eb2bc849d21d5850d425d0b9.tar.gz
Correctly check when to actually save dynamic gateways or not.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index 69cc405..700ba41 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -193,8 +193,12 @@ if ($_POST) {
if (!$input_errors) {
$reloadif = false;
+ $save = false;
+ if ($_POST['weight'] > 1 || $_POST['latencylow'] || $_POST['latencyhigh'] || $_POST['losslow'] || $_POST['losshigh'] || $_POST['down'] ||
+ $_POST['defaultgw'])
+ $save = true;
/* 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 (!$save && empty($_POST['interface']) && empty($_POST['gateway'])) {
if (is_ipaddr($_POST['monitor'])) {
if (empty($_POST['interface']))
$interface = $pconfig['friendlyiface'];
OpenPOWER on IntegriCloud