mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-05 16:56:54 +08:00
Feature: add reject proxy
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user