Allow for selecting the gateway group as a interface for the OpenVPN clients

This commit is contained in:
smos 2012-06-28 12:00:29 +02:00
parent c1449c9484
commit 174ba22bcf

View File

@ -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 = '';
}
?>
?>