mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-12 03:40:29 +00:00
chore: update geo unneeded reload whole config
This commit is contained in:
12
main.go
12
main.go
@@ -120,17 +120,7 @@ func main() {
|
||||
}
|
||||
|
||||
if C.GeoAutoUpdate {
|
||||
updater.RegisterGeoUpdater(func() {
|
||||
cfg, err := executor.ParseWithPath(C.Path.Config())
|
||||
if err != nil {
|
||||
log.Errorln("[GEO] update GEO databases failed: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
log.Warnln("[GEO] update GEO databases success, applying config")
|
||||
|
||||
executor.ApplyConfig(cfg, false)
|
||||
})
|
||||
updater.RegisterGeoUpdater()
|
||||
}
|
||||
|
||||
defer executor.Shutdown()
|
||||
|
||||
Reference in New Issue
Block a user