mirror of https://github.com/cbeuw/Cloak
Respect user choice of ProxyMethod in shadowsocks plugin mode.
This commit is contained in:
parent
46f4235ccb
commit
caca33a1a5
|
|
@ -85,7 +85,9 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ssPluginMode {
|
if ssPluginMode {
|
||||||
rawConfig.ProxyMethod = "shadowsocks"
|
if rawConfig.ProxyMethod == "" {
|
||||||
|
rawConfig.ProxyMethod = "shadowsocks"
|
||||||
|
}
|
||||||
// json takes precedence over environment variables
|
// json takes precedence over environment variables
|
||||||
// i.e. if json field isn't empty, use that
|
// i.e. if json field isn't empty, use that
|
||||||
if rawConfig.RemoteHost == "" {
|
if rawConfig.RemoteHost == "" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue