summaryrefslogtreecommitdiffstats
path: root/etc/inc
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 /etc/inc
parent7075d40ad61e5016e83823afc29473bb7b91c334 (diff)
downloadpfsense-588a183b0e58f09932ffef35cc0003cca2313aba.zip
pfsense-588a183b0e58f09932ffef35cc0003cca2313aba.tar.gz
Move wan gateway to interfaces->wan->gateway
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/config.inc2
-rw-r--r--etc/inc/interfaces.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 7d41bc5..c117079 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -580,7 +580,7 @@ function convert_config() {
/* Default route moved */
if (isset($config['interfaces']['wan']['gateway']))
if ($config['interfaces']['wan']['gateway'] <> "")
- $config['system']['gateway'] = $config['interfaces']['wan']['gateway'];
+ $config['interfaces']['wan']['gateway'] = $config['interfaces']['wan']['gateway'];
unset($config['interfaces']['wan']['gateway']);
/* Queues are no longer interface specific */
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 339d870..d6433f0 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -713,7 +713,7 @@ function interfaces_wan_configure() {
}
/* install default route */
mwexec("/sbin/route delete default");
- mwexec("/sbin/route add default " . escapeshellarg($config['system']['gateway']));
+ mwexec("/sbin/route add default " . escapeshellarg($config['interfaces']['wan']['gateway']));
/* resync pf (done automatically for DHCP/PPPoE/PPTP) */
filter_configure();
OpenPOWER on IntegriCloud