mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 12:43:18 +08:00
✨ 增加socks5协议支持
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user