Revision 1ced293c
Added by Marcus Brown almost 15 years ago
| etc/inc/gwlb.inc | ||
|---|---|---|
| 338 | 338 |
|
| 339 | 339 |
/* automatically skip known static and dynamic gateways we have a array entry for */ |
| 340 | 340 |
foreach($gateways_arr as $gateway_item) {
|
| 341 |
if ($ifname == $gateway_item['friendlyiface'] && $friendly == $gateway_item['name']) |
|
| 341 |
if (($ifname == $gateway_item['friendlyiface'] && $friendly == $gateway_item['name']) || |
|
| 342 |
($ifname == $gateway_item['friendlyiface'] && $gateway_item['dynamic'] == true)) |
|
| 342 | 343 |
continue 2; |
| 343 | 344 |
} |
| 344 | 345 |
|
Also available in: Unified diff
Avoid generating a dynamic gateway entry in the list if there is already one in the config for the interface.