mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-10-10 04:03:11 +08:00
fix: initialize DNS before NTP (#3103)
This commit is contained in:
@@ -102,8 +102,8 @@ func ApplyConfig(cfg *config.Config, force bool) {
|
||||
updateSniffer(cfg.Sniffer)
|
||||
updateHosts(cfg.Hosts)
|
||||
updateGeneral(cfg.General, true)
|
||||
updateNTP(cfg.NTP)
|
||||
updateDNS(cfg.DNS, cfg.General.IPv6)
|
||||
updateNTP(cfg.NTP) // initialize NTP after DNS because an NTP server may be a hostname.
|
||||
updateListeners(cfg.General, cfg.Listeners, force)
|
||||
updateTun(cfg.General) // tun should not care "force"
|
||||
updateIPTables(cfg)
|
||||
|
||||
Reference in New Issue
Block a user