diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 2168d25..3fe7984 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -281,7 +281,7 @@ function interfaces_optional_configure_if($opti) { } else { /* if user has selected DHCP type then act accordingly */ if($optcfg['ipaddr'] == "dhcp") { - interfaces_opt_dhcp_configure($opti); + interfaces_opt_dhcp_configure("opt{$opti}"); } else { mwexec("/sbin/ifconfig " . escapeshellarg($optcfg['if']) . " " . escapeshellarg($optcfg['ipaddr'] . "/" . $optcfg['subnet'])); @@ -610,7 +610,7 @@ function interfaces_wan_configure() { function interfaces_opt_dhcp_configure($interface) { global $config, $g; - $optcfg = $config['interfaces']['opt{$interface}']; + $optcfg = $config['interfaces'][$interface]; $optif = $optcfg['if']; /* generate dhclient_wan.conf */ |