diff options
author | gnhb <gnoahb@gmail.com> | 2010-10-01 07:04:52 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-10-01 07:04:52 +0700 |
commit | 24d4a390501d843243d83f882ee97ab952ed1353 (patch) | |
tree | 1dbf314044ded4717e0f5950c148e3efb49ca041 /usr | |
parent | e0df9716e79f4b2945a9ae0e2a458e217d23b5a3 (diff) | |
download | pfsense-24d4a390501d843243d83f882ee97ab952ed1353.zip pfsense-24d4a390501d843243d83f882ee97ab952ed1353.tar.gz |
When a dynamic interface is up, we still need to report that it's "dynamic" to this GUI in system_gateways_edit.php.
If user edits a dynamic gateway that is up, the gateway IP address (reported by return_gateways_array) will end up
in the "Gateway" field, and then the gateway will get saved as a static gateway unless user manually changes field
to "dynamic" again.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 18ea4b7..d20544b 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -68,7 +68,10 @@ if (isset($id) && $a_gateways[$id]) { $pconfig['weight'] = $a_gateways[$id]['weight']; $pconfig['interface'] = $a_gateways[$id]['interface']; $pconfig['friendlyiface'] = $a_gateways[$id]['friendlyiface']; - $pconfig['gateway'] = $a_gateways[$id]['gateway']; + if ($a_gateways[$id]['gateway'] == "dynamic" || $a_gateway_item[$id]['gateway'] == "dynamic") + $pconfig['gateway'] = gettext("dynamic"); + else + $pconfig['gateway'] = $a_gateways[$id]['gateway']; $pconfig['defaultgw'] = isset($a_gateways[$id]['defaultgw']); $pconfig['latencylow'] = $a_gateway_item[$id]['latencylow']; $pconfig['latencyhigh'] = $a_gateway_item[$id]['latencyhigh']; |