Skip to content

Commit

Permalink
Devices card broken after commit 7dc6ded (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
seud0nym committed Jan 20, 2023
1 parent a8f80b4 commit 071f8ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extras/src/wireguard/wireguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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] = '<span class=\"simple-desc\">'\
html[#html+1] = '<i class=\"icon-cloud status-icon\"></i>'\
html[#html+1] = format(N('<strong %1\$s>%2\$d WireGuard peer</strong> connected','<strong %1\$s>%2\$d WireGuard peers</strong> connected',nVPN),'class=\"modal-link\" data-toggle=\"modal\" data-remote=\"modals/wireguard-modal.lp\" data-id=\"wireguard-modal\"',nVPN)\
Expand Down
2 changes: 1 addition & 1 deletion extras/tch-gui-unhide-xtra.wireguard
Original file line number Diff line number Diff line change
Expand Up @@ -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] = '<span class=\"simple-desc\">'\
html[#html+1] = '<i class=\"icon-cloud status-icon\"></i>'\
html[#html+1] = format(N('<strong %1\$s>%2\$d WireGuard peer</strong> connected','<strong %1\$s>%2\$d WireGuard peers</strong> connected',nVPN),'class=\"modal-link\" data-toggle=\"modal\" data-remote=\"modals/wireguard-modal.lp\" data-id=\"wireguard-modal\"',nVPN)\
Expand Down

0 comments on commit 071f8ee

Please sign in to comment.