Feature: experimental support snell

This commit is contained in:
Dreamacro
2019-10-09 18:46:23 +08:00
parent 54386ccda3
commit 06c9dfdb80
6 changed files with 277 additions and 31 deletions

View File

@ -300,6 +300,13 @@ func parseProxies(cfg *rawConfig) (map[string]C.Proxy, error) {
break
}
proxy, err = adapters.NewVmess(*vmessOption)
case "snell":
snellOption := &adapters.SnellOption{}
err = decoder.Decode(mapping, snellOption)
if err != nil {
break
}
proxy, err = adapters.NewSnell(*snellOption)
default:
return nil, fmt.Errorf("Unsupport proxy type: %s", proxyType)
}