Update main.go

This commit is contained in:
snail007
2017-09-20 20:39:30 +08:00
committed by GitHub
parent f514e54d65
commit e665ef0d4b

View File

@ -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
}