diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-10 05:19:37 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-10 05:19:37 +0000 |
commit | 88f66e13fc2e8b28b5371145034a77e8d0db27f8 (patch) | |
tree | 98ec59c841badcbc25575368cba5e995f8a5fa07 /usr/local/www/interfaces_wan.php | |
parent | 2f948e1c2af0c877bcc0770fb7101805234c2831 (diff) | |
download | pfsense-88f66e13fc2e8b28b5371145034a77e8d0db27f8.zip pfsense-88f66e13fc2e8b28b5371145034a77e8d0db27f8.tar.gz |
Move default gateway out of wan config to system config (leave in gui though)
Remove scheduler config from interfaces
Bump config file version to 1.5
Diffstat (limited to 'usr/local/www/interfaces_wan.php')
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index a4fa794..7d93de9 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -68,7 +68,7 @@ if ($wancfg['ipaddr'] == "dhcp") { $pconfig['type'] = "Static"; $pconfig['ipaddr'] = $wancfg['ipaddr']; $pconfig['subnet'] = $wancfg['subnet']; - $pconfig['gateway'] = $wancfg['gateway']; + $pconfig['gateway'] = $config['system']['gateway']; $pconfig['pointtopoint'] = $wancfg['pointtopoint']; } @@ -175,7 +175,7 @@ if ($_POST) { unset($wancfg['ipaddr']); unset($wancfg['subnet']); - unset($wancfg['gateway']); + unset($config['system']['gateway']); unset($wancfg['pointtopoint']); unset($wancfg['dhcphostname']); unset($config['pppoe']['username']); @@ -199,7 +199,7 @@ if ($_POST) { if ($_POST['type'] == "Static") { $wancfg['ipaddr'] = $_POST['ipaddr']; $wancfg['subnet'] = $_POST['subnet']; - $wancfg['gateway'] = $_POST['gateway']; + $config['system']['gateway'] = $_POST['gateway']; if (isset($wancfg['ispointtopoint'])) $wancfg['pointtopoint'] = $_POST['pointtopoint']; } else if ($_POST['type'] == "DHCP") { |