cleanup gateway code before actually changing things in https://github.com/opnsense/core/issues/2279

Luckily it wasn't really possible to select a gateway group in openvpn at our end, since interfaces and gatewaygroups are really different things.
We need to unravel some of this weirdness first, so we can start reimplementing the gateway code as it is now.
This commit is contained in:
Ad Schellevis 2019-04-09 14:56:04 +02:00
parent 75f74d83a9
commit 607dbfbd8f

View File

@ -769,18 +769,6 @@ $( document ).ready(function() {
$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['lo0'] = "Localhost";
$interfaces['any'] = "any";