From a7b560b576cb76b69a81521dc87bae4dc9a9410f Mon Sep 17 00:00:00 2001 From: kr328 Date: Mon, 11 Apr 2022 20:46:52 +0800 Subject: [PATCH] Fix: LoadDefault should not apply dns patch --- core/src/main/golang/native/config/load.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/main/golang/native/config/load.go b/core/src/main/golang/native/config/load.go index 3196a790..541c9f5a 100644 --- a/core/src/main/golang/native/config/load.go +++ b/core/src/main/golang/native/config/load.go @@ -9,7 +9,6 @@ import ( "gopkg.in/yaml.v2" "cfa/native/app" - "github.com/Dreamacro/clash/constant" "github.com/Dreamacro/clash/log" "github.com/Dreamacro/clash/config" @@ -87,11 +86,7 @@ func Load(path string) error { } func LoadDefault() { - rawConfig, _ := config.UnmarshalRawConfig([]byte{}) - - _ = patchDns(rawConfig, constant.Path.HomeDir()) - - cfg, err := config.ParseRawConfig(rawConfig) + cfg, err := config.Parse([]byte{}) if err != nil { panic(err.Error()) }