Revision d62b164a
Added by Marcus Brown almost 15 years ago
etc/inc/gwlb.inc | ||
---|---|---|
512 | 512 |
$realif = get_real_interface($interface); |
513 | 513 |
if (file_exists("{$g['tmp_path']}/{$realif}_router")) { |
514 | 514 |
$gw = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"), " \n"); |
515 |
if (file_exists("{$g['tmp_path']}/{$realif}_defaultgw")) |
|
516 |
$dynamic = "default"; |
|
517 |
else |
|
518 |
$dynamic = true; |
|
515 |
$dynamic = true; |
|
519 | 516 |
} |
517 |
if (file_exists("{$g['tmp_path']}/{$realif}_defaultgw")) |
|
518 |
$dynamic = "default"; |
|
519 |
|
|
520 |
|
|
520 | 521 |
} |
521 | 522 |
|
522 | 523 |
/* return gateway */ |
Also available in: Unified diff
Report dynamic gateways as default even when they are down.
If gateways appear to lose their default status when they are down it can
be confusing for users. This is purely a UI change.