Skip to content

Commit

Permalink
webui: fix VPN client pages referring wrong array name
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Nov 3, 2021
1 parent d00f214 commit de58d69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions release/src/router/www/Advanced_OpenVPNClient_Content.asp
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,13 @@ function initial()
var vpn_client_array = {"OpenVPN" : ["OpenVPN", "Advanced_OpenVPNClient_Content.asp"], "PPTP" : ["PPTP/L2TP", "Advanced_VPNClient_Content.asp"], "Wireguard" : ["Wireguard", "Advanced_WireguardClient_Content.asp"]};
if(!wireguard_support) {
delete vpn_server_array.Wireguard;
delete vpn_client_array.Wireguard;
}
if(!vpnc_support) {
delete vpn_server_array.PPTP;
delete vpn_client_array.PPTP;
}
if(!openvpnd_support) {
delete vpn_server_array.OpenVPN;
delete vpn_client_array.OpenVPN;
}
$('#divSwitchMenu').html(gen_switch_menu(vpn_client_array, "OpenVPN"));
Expand Down
6 changes: 3 additions & 3 deletions release/src/router/www/Advanced_VPNClient_Content.asp
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ function initial(){
var vpn_client_array = {"OpenVPN" : ["OpenVPN", "Advanced_OpenVPNClient_Content.asp"], "PPTP" : ["PPTP/L2TP", "Advanced_VPNClient_Content.asp"], "Wireguard" : ["Wireguard", "Advanced_WireguardClient_Content.asp"]};
if(!wireguard_support) {
delete vpn_server_array.Wireguard;
delete vpn_client_array.Wireguard;
}
if(!vpnc_support) {
delete vpn_server_array.PPTP;
delete vpn_client_array.PPTP;
}
if(!openvpnd_support) {
delete vpn_server_array.OpenVPN;
delete vpn_client_array.OpenVPN;
}
$('#divSwitchMenu').html(gen_switch_menu(vpn_client_array, "PPTP"));
Expand Down
6 changes: 3 additions & 3 deletions release/src/router/www/Advanced_WireguardClient_Content.asp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ function initial(){
var vpn_client_array = {"OpenVPN" : ["OpenVPN", "Advanced_OpenVPNClient_Content.asp"], "PPTP" : ["PPTP/L2TP", "Advanced_VPNClient_Content.asp"], "Wireguard" : ["Wireguard", "Advanced_WireguardClient_Content.asp"]};
if(!wireguard_support) {
delete vpn_server_array.Wireguard;
delete vpn_client_array.Wireguard;
}
if(!vpnc_support) {
delete vpn_server_array.PPTP;
delete vpn_client_array.PPTP;
}
if(!openvpnd_support) {
delete vpn_server_array.OpenVPN;
delete vpn_client_array.OpenVPN;
}
$('#divSwitchMenu').html(gen_switch_menu(vpn_client_array, "Wireguard"));
Expand Down

0 comments on commit de58d69

Please sign in to comment.