Fix active tunnel indicator for tunnel server (#277)

This commit is contained in:
Tim Wilkinson 2022-03-09 18:26:07 -08:00 committed by GitHub
parent 7a5d15fd09
commit 66ee2fc9a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ if config == "mesh" then
html.print("<td rowspan='2' class='tun_client_center_item'>&nbsp;" .. fullnet) html.print("<td rowspan='2' class='tun_client_center_item'>&nbsp;" .. fullnet)
html.print("<input type=hidden name=client" .. val .. "_netip value='" .. fullnet .. "'/></td>") html.print("<input type=hidden name=client" .. val .. "_netip value='" .. fullnet .. "'/></td>")
html.print("<td rowspan='2' class='tun_client_center_item' align=center>&nbsp;") html.print("<td rowspan='2' class='tun_client_center_item' align=center>&nbsp;")
if val ~= "_add" and is_tunnel_active(val, active_tun) then if val ~= "_add" and is_tunnel_active(fullnet, active_tun) then
html.print("<img class='tun_client_active_img' src='/connected.png' title='Connected' />") html.print("<img class='tun_client_active_img' src='/connected.png' title='Connected' />")
else else
html.print("<img class='tun_client_inactive_img' src='/disconnected.png' title='Not connected' />") html.print("<img class='tun_client_inactive_img' src='/disconnected.png' title='Not connected' />")