diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 20:17:46 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 20:17:46 +0100 |
commit | 89f171b052fbe72aed654d2a1c3d5a24e9bf9902 (patch) | |
tree | 88099045c1b9056bd469f156c28e0015c811980e /etc/inc/gwlb.inc | |
parent | 98bf4991dc31f97fc7315a6b8aba433de9d39cea (diff) | |
download | pfsense-89f171b052fbe72aed654d2a1c3d5a24e9bf9902.zip pfsense-89f171b052fbe72aed654d2a1c3d5a24e9bf9902.tar.gz |
Ticket #3997, teach code to track carp through uniqids(). Missing carp GUI changes and upgrade code
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 53e69eb..70acf38 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -989,8 +989,10 @@ function lookup_gateway_interface_by_name($name) { function get_interface_gateway($interface, &$dynamic = false) { global $config, $g; - $gw = NULL; + if (substr($interface, 0, 4) == 'vip') + $interface = get_configured_carp_interface_list($interface, 'inet6', 'iface'); + $gw = NULL; $gwcfg = $config['interfaces'][$interface]; if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) { foreach($config['gateways']['gateway_item'] as $gateway) { @@ -1020,6 +1022,9 @@ function get_interface_gateway($interface, &$dynamic = false) { function get_interface_gateway_v6($interface, &$dynamic = false) { global $config, $g; + if (substr($interface, 0, 4) == 'vip') + $interface = get_configured_carp_interface_list($interface, 'inet6', 'iface'); + $gw = NULL; $gwcfg = $config['interfaces'][$interface]; if (!empty($gwcfg['gatewayv6']) && is_array($config['gateways']['gateway_item'])) { |