diff --git a/release/src/router/www/Advanced_OpenVPNClient_Content.asp b/release/src/router/www/Advanced_OpenVPNClient_Content.asp index 84a293835fe..dbd878fa486 100644 --- a/release/src/router/www/Advanced_OpenVPNClient_Content.asp +++ b/release/src/router/www/Advanced_OpenVPNClient_Content.asp @@ -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")); diff --git a/release/src/router/www/Advanced_VPNClient_Content.asp b/release/src/router/www/Advanced_VPNClient_Content.asp index 34e07795cdb..bf68394aa70 100644 --- a/release/src/router/www/Advanced_VPNClient_Content.asp +++ b/release/src/router/www/Advanced_VPNClient_Content.asp @@ -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")); diff --git a/release/src/router/www/Advanced_WireguardClient_Content.asp b/release/src/router/www/Advanced_WireguardClient_Content.asp index fd8757b172f..9e781e92ead 100644 --- a/release/src/router/www/Advanced_WireguardClient_Content.asp +++ b/release/src/router/www/Advanced_WireguardClient_Content.asp @@ -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"));