From e665ef0d4ba2634169a35bb7935a31b9d0c76723 Mon Sep 17 00:00:00 2001 From: snail007 Date: Wed, 20 Sep 2017 20:39:30 +0800 Subject: [PATCH] Update main.go --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2d61c50..8b06b9e 100644 --- a/main.go +++ b/main.go @@ -208,8 +208,10 @@ func CheckTCPDeocder(inConn *net.Conn) (useProxy bool, address string, req *HTTP } else { address = cfg.GetString("parent") } - if cfg.GetBool("always") { - useProxy = true + if address == "" { + useProxy = false + } else if cfg.GetBool("always") { + useProxy = true } return }