/* * (non-Javadoc) * * @see * org.owasp.proxy.daemon.TargetedConnectionHandler#handleConnection(java * .net.Socket, java.net.InetSocketAddress) */ public void handleConnection(Socket socket, InetSocketAddress target) throws IOException { if (serverGroup.wouldAccept(target)) throw new IOException("Loop detected! Target " + target + " is handled by a local server"); next.handleConnection(socket, target); }