diff --git a/ray2sing/convert.go b/ray2sing/convert.go index 2524260..496907a 100644 --- a/ray2sing/convert.go +++ b/ray2sing/convert.go @@ -93,8 +93,11 @@ func GenerateConfigLite(input string) (string, error) { var outbounds []T.Outbound counter := 0 for _, config := range configArray { - + if len(config) < 5 || config[0] == '#' || config[0] == '/' { + continue + } detourTag := "" + chains := strings.Split(config, "&&detour=") for _, chain := range chains { fmt.Printf("%s", chain)