mirror of https://github.com/aredn/aredn.git
bigfix: active icon not appearing on server
This commit is contained in:
parent
05839715f6
commit
cc2415faf0
|
@ -381,8 +381,11 @@ sub print_vpn_clients()
|
|||
print "<td> $fullnet";
|
||||
print "<input type=hidden name=client${val}_netip value='$fullnet'/></td>";
|
||||
print "<td align=center> ";
|
||||
print "<img class='tun_client_active_img' src='/connected.png'/>" if (&is_tunnel_active($name,@active_tun) && ($val ne "_add"));
|
||||
print "<img class='tun_client_inactive_img' src='/disconnected.png'/>" if ($val ne "_add");
|
||||
if (&is_tunnel_active($fullnet,@active_tun) && ($val ne "_add")) {
|
||||
print "<img class='tun_client_active_img' src='/connected.png'/>";
|
||||
} else {
|
||||
print "<img class='tun_client_inactive_img' src='/disconnected.png'/>";
|
||||
}
|
||||
print "</td>";
|
||||
print "<td><input type=submit name=client_add value=Add title='Add this client'>" if($val eq "_add");
|
||||
print "</td>";
|
||||
|
|
Loading…
Reference in New Issue