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,7 +208,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") { if address == "" {
useProxy = false
} else if cfg.GetBool("always") {
useProxy = true useProxy = true
} }
return return