From 668d29d91ff792cedcac39630e1ba9a6a21a027d Mon Sep 17 00:00:00 2001 From: admin <2833154405@qq.com> Date: Mon, 21 Mar 2022 19:47:21 +0800 Subject: [PATCH] init sequence adjustment --- hub/executor/executor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/executor/executor.go b/hub/executor/executor.go index e261ef9e..aff16826 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -75,14 +75,14 @@ func ApplyConfig(cfg *config.Config, force bool) { defer mux.Unlock() updateUsers(cfg.Users) - updateHosts(cfg.Hosts) updateProxies(cfg.Proxies, cfg.Providers) updateRules(cfg.Rules, cfg.RuleProviders) - updateGeneral(cfg.General, force) updateDNS(cfg.DNS, cfg.Tun) + updateGeneral(cfg.General, force) updateTun(cfg.Tun) updateIPTables(cfg.DNS, cfg.General, cfg.Tun) updateExperimental(cfg) + updateHosts(cfg.Hosts) loadProvider(cfg.RuleProviders, cfg.Providers) updateProfile(cfg)