From ddbf0be0d22e5dca81a0eb8e3e063aeefc51acd6 Mon Sep 17 00:00:00 2001 From: Hiddify <114227601+hiddify1@users.noreply.github.com> Date: Sat, 9 Sep 2023 20:23:44 +0000 Subject: [PATCH] fix confilicte with clash --- shared/parser.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shared/parser.go b/shared/parser.go index 5ed691e..365df65 100644 --- a/shared/parser.go +++ b/shared/parser.go @@ -23,11 +23,12 @@ func ParseConfig(path string) error { config, err := parseV2rayFormat(content) if err != nil { config = content + config, err = parseClash(content) + if err != nil { + config = content + } } - config, err = parseClash(content) - if err != nil { - config = content - } + err = libbox.CheckConfig(string(config)) if err != nil {