From 607dbfbd8f5f2829cda4844482d3991bdc5c2574 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 9 Apr 2019 14:56:04 +0200 Subject: [PATCH] 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. --- src/www/vpn_openvpn_server.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/www/vpn_openvpn_server.php b/src/www/vpn_openvpn_server.php index 76cef73db..51bfd3346 100644 --- a/src/www/vpn_openvpn_server.php +++ b/src/www/vpn_openvpn_server.php @@ -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";