diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-12-27 11:55:36 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-12-27 12:58:10 -0200 |
commit | 14be28af759521404eae48587c730a8eb135c5ec (patch) | |
tree | 8dc52aa3ab9698dd2d7020fd85298916df52812a /etc/inc/gwlb.inc | |
parent | 141254eb9a603745365eaf48b5575090a1cd4983 (diff) | |
download | pfsense-14be28af759521404eae48587c730a8eb135c5ec.zip pfsense-14be28af759521404eae48587c730a8eb135c5ec.tar.gz |
No reason to set the same value to ipprotocol
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 7984a10..9fd73d7 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -391,7 +391,6 @@ function return_gateways_array($disabled = false, $localhost = false) { if (empty($gateway['gateway']) || $gateway['gateway'] == "dynamic" || $gateway['gateway'] == "dynamic6") { if ($gateway['ipprotocol'] == "inet") { /* we know which interfaces is dynamic, this should be made a function */ - $gateway['ipprotocol'] = "inet"; $gateway['gateway'] = get_interface_gateway($gateway['interface']); /* no IP address found, set to dynamic */ if (!is_ipaddrv4($gateway['gateway'])) @@ -402,7 +401,6 @@ function return_gateways_array($disabled = false, $localhost = false) { /* if the gateway is dynamic6 and we can find the IPv6, Great! */ else if ($gateway['ipprotocol'] == "inet6") { /* we know which interfaces is dynamic, this should be made a function, and for v6 too */ - $gateway['ipprotocol'] = "inet6"; $gateway['gateway'] = get_interface_gateway_v6($gateway['interface']); /* no IPv6 address found, set to dynamic6 */ if (!is_ipaddrv6($gateway['gateway'])) |