Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>

This commit is contained in:
arraykeys@gmail.com
2017-09-20 19:35:36 +08:00
parent 4ce5a461f4
commit 30b088a13f

View File

@ -211,7 +211,9 @@ func CheckTCPDeocder(inConn *net.Conn) (useProxy bool, address string, req *HTTP
} else { } else {
address = cfg.GetString("parent") address = cfg.GetString("parent")
} }
if cfg.GetBool("always") {
useProxy = true
}
return return
} }
func LocalTCPServer(sc *ServerChannel) { func LocalTCPServer(sc *ServerChannel) {
@ -270,7 +272,7 @@ func TCPOutBridge(inConn *net.Conn, userProxy bool, address string, req *HTTPReq
} }
inAddr := (*inConn).RemoteAddr().String() inAddr := (*inConn).RemoteAddr().String()
outAddr := outConn.RemoteAddr().String() outAddr := outConn.RemoteAddr().String()
//log.Printf("%s use proxy %v",address, userProxy) log.Printf("%s use proxy %v", address, userProxy)
if req != nil { if req != nil {
if req.IsHTTPS() && !userProxy { if req.IsHTTPS() && !userProxy {