Respect user choice of ProxyMethod in shadowsocks plugin mode.

This commit is contained in:
notsure2 2020-12-07 22:28:03 +02:00 committed by Andy Wang
parent 46f4235ccb
commit caca33a1a5
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ func main() {
}
if ssPluginMode {
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 == "" {