mirror of
https://github.com/bestnite/sub2clash.git
synced 2025-06-17 12:43:18 +08:00
fix reg socks
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user