diff --git a/hub/executor/executor.go b/hub/executor/executor.go index 01d4ba84..8bf287f7 100644 --- a/hub/executor/executor.go +++ b/hub/executor/executor.go @@ -76,15 +76,15 @@ func ApplyConfig(cfg *config.Config, force bool) { updateProxies(cfg.Proxies, cfg.Providers) updateRules(cfg.Rules, cfg.RuleProviders) updateSniffer(cfg.Sniffer) + updateHosts(cfg.Hosts) updateDNS(cfg.DNS) + loadProxyProvider(cfg.Providers) + loadRuleProvider(cfg.RuleProviders) updateGeneral(cfg.General, force) updateIPTables(cfg) updateTun(cfg.Tun, cfg.DNS) updateExperimental(cfg) - updateHosts(cfg.Hosts) - loadProxyProvider(cfg.Providers) updateProfile(cfg) - loadRuleProvider(cfg.RuleProviders) log.SetLevel(cfg.General.LogLevel) }