Respect user choice of ProxyMethod in shadowsocks plugin mode.

pull/145/head
notsure2 4 years ago committed by Andy Wang
parent 46f4235ccb
commit caca33a1a5

@ -85,7 +85,9 @@ func main() {
}
if ssPluginMode {
rawConfig.ProxyMethod = "shadowsocks"
if rawConfig.ProxyMethod == "" {
rawConfig.ProxyMethod = "shadowsocks"
}
// json takes precedence over environment variables
// i.e. if json field isn't empty, use that
if rawConfig.RemoteHost == "" {

Loading…
Cancel
Save