From 250a9f4f847cad95f1960d280603d4bf07991d47 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Sat, 10 Jul 2021 17:01:40 +0800 Subject: [PATCH] Fix: reorder apply config to ensure update proxies and rules --- hub/executor/executor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 321efe25..4438a576 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -70,13 +70,13 @@ func ApplyConfig(cfg *config.Config, force bool) { defer mux.Unlock() updateUsers(cfg.Users) - updateGeneral(cfg.General, force) updateProxies(cfg.Proxies, cfg.Providers) updateRules(cfg.Rules) - updateDNS(cfg.DNS) updateHosts(cfg.Hosts) - updateExperimental(cfg) updateProfile(cfg) + updateGeneral(cfg.General, force) + updateDNS(cfg.DNS) + updateExperimental(cfg) } func GetGeneral() *config.General {