Feature: add reject proxy

This commit is contained in:
xjasonlyu
2021-07-15 19:54:56 +08:00
parent 67cc84d1d0
commit 842920c39b
3 changed files with 37 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ func parseProxy(s string) (proxy.Proxy, error) {
switch protocol {
case proto.Direct.String():
return proxy.NewDirect(), nil
case proto.Reject.String():
return proxy.NewReject(), nil
case proto.Socks5.String():
return proxy.NewSocks5(parseSocks(u))
case proto.Shadowsocks.String():