summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-31 17:21:05 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-31 17:21:05 +0000
commit0e1a94e7dbc0bce1372e8ff3bc5a89b0a2dc8ba5 (patch)
tree50a8908e534a1cf2853d0e312fe15809513ffeef
parent929b2de583c543b088a65ed37ef6500c3ca08ac5 (diff)
downloadpfsense-0e1a94e7dbc0bce1372e8ff3bc5a89b0a2dc8ba5.zip
pfsense-0e1a94e7dbc0bce1372e8ff3bc5a89b0a2dc8ba5.tar.gz
Try to do some more validation at old bridge creation till things settle for the other parts.
-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 603d06f..b819f1d 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -449,7 +449,7 @@ function interfaces_lan_configure() {
/* bridged? */
- if ($lancfg['bridge']) {
+ if ($lancfg['bridge'] && $lancfg['bridge'] <> "") {
/* use open/netBSD style bridge */
mwexec("/sbin/ifconfig bridge{$bridges_total} create");
@@ -1221,7 +1221,7 @@ function interfaces_wan_configure($interface = "wan") {
filter_configure();
}
- if ($wancfg['bridge']) {
+ if ($wancfg['bridge'] && $wancfg['bridge'] <> "") {
/* use open/netBSD style bridge */
mwexec("/sbin/ifconfig bridge{$bridges_total} create");
OpenPOWER on IntegriCloud