mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow for selecting the gateway group as a interface for the OpenVPN clients
This commit is contained in:
parent
c1449c9484
commit
174ba22bcf
@ -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 = '';
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user