diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-09 20:34:51 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-09 20:34:51 +0000 |
commit | c0f5182ce0b30aa61b02df3dbe3d45fcda0961db (patch) | |
tree | 37ee9ac0d51d86b3540ef9eda885766dd75b18fe /usr/local/www | |
parent | 68ff67b360068bf308eb0305aeb1fa841f85bc01 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 5 |
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; |