Fix: reorder apply config to ensure update proxies and rules

This commit is contained in:
gVisor bot 2021-07-10 17:01:40 +08:00
parent cd6cd3880d
commit a078203976

View file

@ -70,13 +70,13 @@ func ApplyConfig(cfg *config.Config, force bool) {
defer mux.Unlock() defer mux.Unlock()
updateUsers(cfg.Users) updateUsers(cfg.Users)
updateGeneral(cfg.General, force)
updateProxies(cfg.Proxies, cfg.Providers) updateProxies(cfg.Proxies, cfg.Providers)
updateRules(cfg.Rules) updateRules(cfg.Rules)
updateDNS(cfg.DNS)
updateHosts(cfg.Hosts) updateHosts(cfg.Hosts)
updateExperimental(cfg)
updateProfile(cfg) updateProfile(cfg)
updateGeneral(cfg.General, force)
updateDNS(cfg.DNS)
updateExperimental(cfg)
} }
func GetGeneral() *config.General { func GetGeneral() *config.General {