1
0
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:
xYx
2026-08-16 16:35:56 +08:00
committed by GitHub
parent 8c56780b56
commit ac017cdd24
+1 -1
View File
@@ -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)