fix reg socks

This commit is contained in:
beck-8
2025-06-12 10:41:59 +08:00
parent 2a042968d0
commit 62229fba97

View File

@ -149,7 +149,7 @@ func BuildSub(clashType model.ClashType, query model.SubConfig, template string,
err = yaml.Unmarshal(data, &sub) err = yaml.Unmarshal(data, &sub)
var newProxies []P.Proxy var newProxies []P.Proxy
if err != nil { if err != nil {
reg, _ := regexp.Compile("(ssr|ss|vmess|trojan|vless|hysteria|hy2|hysteria2)://") reg, _ := regexp.Compile("(ssr|ss|vmess|trojan|vless|hysteria|hy2|hysteria2|socks)://")
if reg.Match(data) { if reg.Match(data) {
p := parser.ParseProxies(strings.Split(string(data), "\n")...) p := parser.ParseProxies(strings.Split(string(data), "\n")...)
newProxies = p newProxies = p