Feature: add shadowsocks simple-obfs support

This commit is contained in:
Dreamacro
2018-09-16 23:02:32 +08:00
parent 4082a2c700
commit 5d34cba681
4 changed files with 310 additions and 8 deletions

View File

@ -223,7 +223,8 @@ func (c *Config) parseProxies(cfg *ini.File) error {
continue
}
ssURL := fmt.Sprintf("ss://%s:%s@%s:%s", proxy[3], proxy[4], proxy[1], proxy[2])
ss, err := adapters.NewShadowSocks(key.Name(), ssURL)
option := parseOptions(5, proxy...)
ss, err := adapters.NewShadowSocks(key.Name(), ssURL, option)
if err != nil {
return err
}