From 9e68171e8182588be3419990a2ba122b492c44a3 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Fri, 20 Jan 2017 17:37:01 +0800 Subject: [PATCH] add debug log for transparent and socks request --- client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.go b/client.go index f419fa8..e11a174 100644 --- a/client.go +++ b/client.go @@ -260,6 +260,7 @@ func (cc *Client) handleDynamicForward(conn net.Conn) { if addr.String() != conn.LocalAddr().String() { // transparent proxy // iptables redirect the packet to this port + Log(DEBUG, "transparent %s -> %s", conn.RemoteAddr(), addr) cc.handleTransparentProxy(conn, addr) return } @@ -271,6 +272,7 @@ func (cc *Client) handleDynamicForward(conn net.Conn) { } // socks5 to this port + Log(DEBUG, "socks %s", conn.RemoteAddr()) s := socks.Conn{Conn: conn, Dial: cc.client.Dial} s.Serve() }