diff --git a/extras/src/wireguard/wireguard.sh b/extras/src/wireguard/wireguard.sh index 0e20020a..c60b1912 100644 --- a/extras/src/wireguard/wireguard.sh +++ b/extras/src/wireguard/wireguard.sh @@ -144,7 +144,7 @@ HLP if ! grep -q 'numVPNClient' /www/lua/devicescard_helper.lua; then sed \ -e '/ActiveEthernetNumberOfEntries/a\ numVPNClient = "rpc.gui.wireguard.server_active_peers",' \ - -e '/local nWiFi/a\ local nVPN = tonumber(devices_data["numVPNClient"]) or 0' \ + -e '/local nEth/a\ local nVPN = tonumber(devices_data["numVPNClient"]) or 0' \ -e "/WireGuard/a\ html[#html+1] = ''\ html[#html+1] = ''\ html[#html+1] = format(N('%2\$d WireGuard peer connected','%2\$d WireGuard peers connected',nVPN),'class=\"modal-link\" data-toggle=\"modal\" data-remote=\"modals/wireguard-modal.lp\" data-id=\"wireguard-modal\"',nVPN)\ diff --git a/extras/tch-gui-unhide-xtra.wireguard b/extras/tch-gui-unhide-xtra.wireguard index 8cbd8056..c99752c7 100755 --- a/extras/tch-gui-unhide-xtra.wireguard +++ b/extras/tch-gui-unhide-xtra.wireguard @@ -2284,7 +2284,7 @@ HLP if ! grep -q 'numVPNClient' /www/lua/devicescard_helper.lua; then sed \ -e '/ActiveEthernetNumberOfEntries/a\ numVPNClient = "rpc.gui.wireguard.server_active_peers",' \ - -e '/local nWiFi/a\ local nVPN = tonumber(devices_data["numVPNClient"]) or 0' \ + -e '/local nEth/a\ local nVPN = tonumber(devices_data["numVPNClient"]) or 0' \ -e "/WireGuard/a\ html[#html+1] = ''\ html[#html+1] = ''\ html[#html+1] = format(N('%2\$d WireGuard peer connected','%2\$d WireGuard peers connected',nVPN),'class=\"modal-link\" data-toggle=\"modal\" data-remote=\"modals/wireguard-modal.lp\" data-id=\"wireguard-modal\"',nVPN)\