summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-09 23:40:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-09 23:40:41 +0000
commit588a183b0e58f09932ffef35cc0003cca2313aba (patch)
tree07f8baa177cd888a099370e301cd6007806f7e27 /usr
parent7075d40ad61e5016e83823afc29473bb7b91c334 (diff)
downloadpfsense-588a183b0e58f09932ffef35cc0003cca2313aba.zip
pfsense-588a183b0e58f09932ffef35cc0003cca2313aba.tar.gz
Move wan gateway to interfaces->wan->gateway
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php6
-rwxr-xr-xusr/local/www/interfaces_wan.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 2872587..7c25a47 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -71,7 +71,7 @@ if ($wancfg['ipaddr'] == "dhcp") {
$pconfig['type'] = "Static";
$pconfig['ipaddr'] = $wancfg['ipaddr'];
$pconfig['subnet'] = $wancfg['subnet'];
- $pconfig['gateway'] = $config['system']['gateway'];
+ $pconfig['gateway'] = $config['interfaces']['wan']['gateway'];
$pconfig['pointtopoint'] = $wancfg['pointtopoint'];
}
@@ -191,7 +191,7 @@ if ($_POST) {
unset($wancfg['ipaddr']);
unset($wancfg['subnet']);
- unset($config['system']['gateway']);
+ unset($config['interfaces']['wan']['gateway']);
unset($wancfg['pointtopoint']);
unset($wancfg['dhcphostname']);
unset($config['pppoe']['username']);
@@ -215,7 +215,7 @@ if ($_POST) {
if ($_POST['type'] == "Static") {
$wancfg['ipaddr'] = $_POST['ipaddr'];
$wancfg['subnet'] = $_POST['subnet'];
- $config['system']['gateway'] = $_POST['gateway'];
+ $config['interfaces']['wan']['gateway'] = $_POST['gateway'];
if (isset($wancfg['ispointtopoint']))
$wancfg['pointtopoint'] = $_POST['pointtopoint'];
} else if ($_POST['type'] == "DHCP") {
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index 2872587..7c25a47 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -71,7 +71,7 @@ if ($wancfg['ipaddr'] == "dhcp") {
$pconfig['type'] = "Static";
$pconfig['ipaddr'] = $wancfg['ipaddr'];
$pconfig['subnet'] = $wancfg['subnet'];
- $pconfig['gateway'] = $config['system']['gateway'];
+ $pconfig['gateway'] = $config['interfaces']['wan']['gateway'];
$pconfig['pointtopoint'] = $wancfg['pointtopoint'];
}
@@ -191,7 +191,7 @@ if ($_POST) {
unset($wancfg['ipaddr']);
unset($wancfg['subnet']);
- unset($config['system']['gateway']);
+ unset($config['interfaces']['wan']['gateway']);
unset($wancfg['pointtopoint']);
unset($wancfg['dhcphostname']);
unset($config['pppoe']['username']);
@@ -215,7 +215,7 @@ if ($_POST) {
if ($_POST['type'] == "Static") {
$wancfg['ipaddr'] = $_POST['ipaddr'];
$wancfg['subnet'] = $_POST['subnet'];
- $config['system']['gateway'] = $_POST['gateway'];
+ $config['interfaces']['wan']['gateway'] = $_POST['gateway'];
if (isset($wancfg['ispointtopoint']))
$wancfg['pointtopoint'] = $_POST['pointtopoint'];
} else if ($_POST['type'] == "DHCP") {
OpenPOWER on IntegriCloud