diff --git a/files/www/cgi-bin/vpn b/files/www/cgi-bin/vpn index 393f67a5..851a0931 100755 --- a/files/www/cgi-bin/vpn +++ b/files/www/cgi-bin/vpn @@ -381,8 +381,11 @@ sub print_vpn_clients() print " $fullnet"; print ""; print " "; - print "" if (&is_tunnel_active($name,@active_tun) && ($val ne "_add")); - print "" if ($val ne "_add"); + if (&is_tunnel_active($fullnet,@active_tun) && ($val ne "_add")) { + print ""; + } else { + print ""; + } print ""; print "" if($val eq "_add"); print "";