diff options
author | gnhb <gnoahb@gmail.com> | 2010-10-05 16:18:24 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-10-05 16:18:24 +0700 |
commit | d62b164af610561d15b4e30dfc6f9125cce801e2 (patch) | |
tree | 34257825fcfff2f88d94fe644924a44f144c4f6c /etc/inc/gwlb.inc | |
parent | 8d3556c2212ad51892a5a4eea4511b92ce12b225 (diff) | |
download | pfsense-d62b164af610561d15b4e30dfc6f9125cce801e2.zip pfsense-d62b164af610561d15b4e30dfc6f9125cce801e2.tar.gz |
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.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 4a37016..ce90e69 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -512,11 +512,12 @@ function get_interface_gateway($interface, &$dynamic = false) { $realif = get_real_interface($interface); if (file_exists("{$g['tmp_path']}/{$realif}_router")) { $gw = trim(file_get_contents("{$g['tmp_path']}/{$realif}_router"), " \n"); - if (file_exists("{$g['tmp_path']}/{$realif}_defaultgw")) - $dynamic = "default"; - else - $dynamic = true; + $dynamic = true; } + if (file_exists("{$g['tmp_path']}/{$realif}_defaultgw")) + $dynamic = "default"; + + } /* return gateway */ |