diff options
-rw-r--r-- | usr/local/www/vpn_openvpn_client.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php index 3ea25cb..f37e81b 100644 --- a/usr/local/www/vpn_openvpn_client.php +++ b/usr/local/www/vpn_openvpn_client.php @@ -464,6 +464,16 @@ if ($savemsg) $aliaslist = get_configured_ip_aliases_list(); foreach ($aliaslist as $aliasip => $aliasif) $interfaces[$aliasif.'|'.$aliasip] = $aliasip." (".get_vip_descr($aliasip).")"; + $grouplist = return_gateway_groups_array(); + foreach ($grouplist as $name => $group) { + if($group['ipprotocol'] != inet) + continue; + if($group[0]['vip'] <> "") + $vipif = $group[0]['vip']; + else + $vipif = $group[0]['int']; + $interfaces[$name] = "GW Group {$name}"; + } $interfaces['any'] = "any"; foreach ($interfaces as $iface => $ifacename): $selected = ""; @@ -951,4 +961,4 @@ function set_checked($var,& $chk) { $chk = ''; } -?>
\ No newline at end of file +?> |