增加socks5协议支持

This commit is contained in:
96368a
2024-11-13 09:21:31 +08:00
parent 66f214ae10
commit fefb4b895a
6 changed files with 87 additions and 0 deletions

View File

@ -127,6 +127,9 @@ func ParseProxy(proxies ...string) []model.Proxy {
if strings.HasPrefix(proxy, constant.HysteriaPrefix) {
proxyItem, err = parser.ParseHysteria(proxy)
}
if strings.HasPrefix(proxy, constant.SocksPrefix) {
proxyItem, err = parser.ParseSocks(proxy)
}
if err == nil {
result = append(result, proxyItem)
} else {