mirror of https://github.com/cbeuw/Cloak
Set ProxyMethod to shadowsocks automatically if started as a shadowsocks plugin
This commit is contained in:
parent
c88c3d0084
commit
0e71b052dc
|
|
@ -151,6 +151,10 @@ func main() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
if os.Getenv("SS_LOCAL_HOST") != "" {
|
||||
sta.ProxyMethod = "shadowsocks"
|
||||
}
|
||||
|
||||
if sta.LocalPort == "" {
|
||||
log.Fatal("Must specify localPort")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue