summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-23 22:34:39 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-23 22:34:39 +0000
commit930595154ccc8702befdd880f1c424b78040af2a (patch)
tree5530517ffb8eca66f7d7fb3fd967df4246aa664f /etc/inc/gwlb.inc
parent84786936818936be9a29c5b0bc3e81f453107ca0 (diff)
downloadpfsense-930595154ccc8702befdd880f1c424b78040af2a.zip
pfsense-930595154ccc8702befdd880f1c424b78040af2a.tar.gz
Fix linking interface to vlans function so it works correctly.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 3cb4727..d27e0ec 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -520,7 +520,7 @@ function get_interface_gateway($interface, &$dynamic = false) {
$gw = lookup_gateway_ip_by_name($gwcfg['gateway']);
// for dynamic interfaces we handle them through the $interface_router file.
- if (!is_ipaddr($gw)) {
+ if (!is_ipaddr($gw) && !is_ipaddr($gwcfg['ipaddr'])) {
$realif = get_real_interface($interface);
if (file_exists("{$g['tmp_path']}/{$realif}_router")) {
$gw = file_get_contents("{$g['tmp_path']}/{$realif}_router");
OpenPOWER on IntegriCloud