summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-09 20:34:51 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-09 20:34:51 +0000
commitc0f5182ce0b30aa61b02df3dbe3d45fcda0961db (patch)
tree37ee9ac0d51d86b3540ef9eda885766dd75b18fe /usr/local/www/system_gateways_edit.php
parent68ff67b360068bf308eb0305aeb1fa841f85bc01 (diff)
downloadpfsense-c0f5182ce0b30aa61b02df3dbe3d45fcda0961db.zip
pfsense-c0f5182ce0b30aa61b02df3dbe3d45fcda0961db.tar.gz
Correctly configure the default route addition when interfaces are configured for pppoe/pptp. Handle in system routing configure dynamic interfaces. Also when chaning or configuring the defaultgw reconfigure the underlying interface, this helps when this interfaces are dynamics one.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index b562579..fe9c4f9 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -164,6 +164,7 @@ 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'];
@@ -181,6 +182,7 @@ if ($_POST) {
$i++;
}
$gateway['defaultgw'] = true;
+ $reloadif = true;
} else {
unset($gateway['defaultgw']);
}
@@ -200,7 +202,8 @@ if ($_POST) {
if($_REQUEST['isAjax']) {
echo $_POST['name'];
exit;
- }
+ } else if ($reloadif == true)
+ interface_configure($_POST['interface']);
header("Location: system_gateways.php");
exit;
OpenPOWER on IntegriCloud