summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-16 21:22:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-16 21:22:05 +0000
commit1223f92234344fa28b20867bd66358eff2ec2f8d (patch)
tree4a286dccbd2da1571fdd20eb2431a16aaad1a2ea /etc/inc/interfaces.inc
parentaab78cf675ca05db9645e6a9e421c27cb20c5d53 (diff)
downloadpfsense-1223f92234344fa28b20867bd66358eff2ec2f8d.zip
pfsense-1223f92234344fa28b20867bd66358eff2ec2f8d.tar.gz
Use correct interface
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc4
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 */
OpenPOWER on IntegriCloud