Signed-off-by: arraykeys@gmail.com <arraykeys@gmail.com>
This commit is contained in:
6
main.go
6
main.go
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user