diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-23 22:34:39 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-23 22:34:39 +0000 |
commit | 930595154ccc8702befdd880f1c424b78040af2a (patch) | |
tree | 5530517ffb8eca66f7d7fb3fd967df4246aa664f /etc/inc/gwlb.inc | |
parent | 84786936818936be9a29c5b0bc3e81f453107ca0 (diff) | |
download | pfsense-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.inc | 2 |
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"); |