diff --git a/cmd/cmd_convert.go b/cmd/cmd_convert.go index f500c27..9f2f261 100644 --- a/cmd/cmd_convert.go +++ b/cmd/cmd_convert.go @@ -26,7 +26,7 @@ func init() { } func convert(link string) error { - outbound, err := ray2sing.Ray2Singbox(link) + outbound, err := ray2sing.Ray2Singbox(link, false) if err != nil { return err } diff --git a/main.go b/main.go index 66670cc..194103b 100644 --- a/main.go +++ b/main.go @@ -85,7 +85,7 @@ func main() { } else { configs = read() } - clash_conf, err := ray2sing.Ray2Singbox(configs, true) + clash_conf, err := ray2sing.Ray2Singbox(configs, false) if err != nil { log.Fatalf("Failed to parse config: %v", err) } diff --git a/ray2sing/convert.go b/ray2sing/convert.go index 08f01fb..23d561e 100644 --- a/ray2sing/convert.go +++ b/ray2sing/convert.go @@ -101,7 +101,7 @@ func GenerateConfigLite(input string, useXrayWhenPossible bool) (string, error) chains := strings.Split(config, "&&detour=") for _, chain := range chains { - fmt.Printf("%s", chain) + // fmt.Printf("%s", chain) configSingbox, err := processSingleConfig(chain, useXrayWhenPossible) if err != nil {