bigfix: active icon not appearing on server

This commit is contained in:
Darryl Quinn 2015-06-14 20:50:54 -05:00
parent 05839715f6
commit cc2415faf0
1 changed files with 5 additions and 2 deletions

View File

@ -381,8 +381,11 @@ sub print_vpn_clients()
print "<td>&nbsp;$fullnet";
print "<input type=hidden name=client${val}_netip value='$fullnet'/></td>";
print "<td align=center>&nbsp;";
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>";