summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_opt.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-24 19:42:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-24 19:42:38 +0000
commitee968e4f29df3684e76be1d07ad6f67e48ffe6a4 (patch)
tree7246f89c6dbc94889fe327f7c97c659f6e7ea21e /usr/local/www/interfaces_opt.php
parentde42a08e05b220ea82d775b36d860b7bbc584440 (diff)
downloadpfsense-ee968e4f29df3684e76be1d07ad6f67e48ffe6a4.zip
pfsense-ee968e4f29df3684e76be1d07ad6f67e48ffe6a4.tar.gz
Compare against $pconfig and only check items if gateway is changing.
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-xusr/local/www/interfaces_opt.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index ff5894b..92a96df 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -83,9 +83,7 @@ if ($_POST) {
/* filter out spaces from descriptions */
$POST['descr'] = remove_bad_chars($POST['descr']);
- $pconfig = $_POST;
-
- if($_POST['gateway']) {
+ if($_POST['gateway'] and $pconfig['gateway'] <> $_POST['gateway']) {
/* enumerate slbd gateways and make sure we are not creating a route loop */
if(is_array($config['load_balancer']['lbpool'])) {
foreach($config['load_balancer']['lbpool'] as $lbpool) {
@@ -100,6 +98,8 @@ if ($_POST) {
}
}
+ $pconfig = $_POST;
+
/* input validation */
if ($_POST['enable']) {
OpenPOWER on IntegriCloud