summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-04-27 16:18:36 +0000
committerErmal <eri@pfsense.org>2010-04-27 16:18:36 +0000
commitc6d1c7ded2e223ffe668a58a2a66d152a60e8422 (patch)
tree9e28b8714a1a95a74e97feab7d67729d192fb4a9 /usr/local
parenteb01fcec8f4ebf4ab7af75b67757fec195e5d30c (diff)
downloadpfsense-c6d1c7ded2e223ffe668a58a2a66d152a60e8422.zip
pfsense-c6d1c7ded2e223ffe668a58a2a66d152a60e8422.tar.gz
Ticket #517. Fix saving of monitorip in dynamic interface cases.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/system_gateways_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index fe9c4f9..daa2abf 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -146,11 +146,12 @@ if ($_POST) {
}
if (!$input_errors) {
+ $reloadif = false;
/* if we are processing a system gateway only save the monitorip */
if(($_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['interface'];
+ $interface = $pconfig['friendlyiface'];
else
$interface = $_POST['interface'];
$config['interfaces'][$interface]['monitorip'] = $_POST['monitor'];
@@ -164,7 +165,6 @@ if ($_POST) {
/* Manual gateways are handled differently */
/* rebuild the array with the manual entries only */
- $reloadif = false;
$gateway = array();
$gateway['interface'] = $_POST['interface'];
$gateway['name'] = $_POST['name'];
OpenPOWER on IntegriCloud