summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
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