Skip to content
Snippets Groups Projects
Commit a7b560b5 authored by kr328's avatar kr328
Browse files

Fix: LoadDefault should not apply dns patch

parent 5f9d4c15
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,6 @@ import ( ...@@ -9,7 +9,6 @@ import (
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"cfa/native/app" "cfa/native/app"
"github.com/Dreamacro/clash/constant"
"github.com/Dreamacro/clash/log" "github.com/Dreamacro/clash/log"
"github.com/Dreamacro/clash/config" "github.com/Dreamacro/clash/config"
...@@ -87,11 +86,7 @@ func Load(path string) error { ...@@ -87,11 +86,7 @@ func Load(path string) error {
} }
func LoadDefault() { func LoadDefault() {
rawConfig, _ := config.UnmarshalRawConfig([]byte{}) cfg, err := config.Parse([]byte{})
_ = patchDns(rawConfig, constant.Path.HomeDir())
cfg, err := config.ParseRawConfig(rawConfig)
if err != nil { if err != nil {
panic(err.Error()) panic(err.Error())
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment