diff options
author | gnhb <gnoahb@gmail.com> | 2010-10-05 23:45:45 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-10-05 23:45:45 +0700 |
commit | 1ced293c958c8e506de4384749be7e78f4d07ac4 (patch) | |
tree | e9836fea926b3ab570ad2f98ed0ed64d99a3062e /etc | |
parent | 86df2846bb948bff73601f86374193d48f4723c5 (diff) | |
download | pfsense-1ced293c958c8e506de4384749be7e78f4d07ac4.zip pfsense-1ced293c958c8e506de4384749be7e78f4d07ac4.tar.gz |
Avoid generating a dynamic gateway entry in the list if there is already one in the config for the interface.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/gwlb.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 0a1a1f7..844cba5 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -338,7 +338,8 @@ function return_gateways_array($disabled = false) { /* automatically skip known static and dynamic gateways we have a array entry for */ foreach($gateways_arr as $gateway_item) { - if ($ifname == $gateway_item['friendlyiface'] && $friendly == $gateway_item['name']) + if (($ifname == $gateway_item['friendlyiface'] && $friendly == $gateway_item['name']) || + ($ifname == $gateway_item['friendlyiface'] && $gateway_item['dynamic'] == true)) continue 2; } |