From b3295262c1fbfdab7723454d0f27de36c59723d8 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Thu, 5 May 2022 21:14:46 +0800 Subject: [PATCH] chore: Initialize provider ahead of time --- 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 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) }