chore: cleanup geo internal code

This commit is contained in:
wwqgtxx
2024-09-09 16:08:48 +08:00
parent ef244b896a
commit 7c8f451892
16 changed files with 219 additions and 214 deletions

View File

@@ -11,6 +11,7 @@ import (
"strings"
"syscall"
"github.com/metacubex/mihomo/component/geodata"
"github.com/metacubex/mihomo/component/updater"
"github.com/metacubex/mihomo/config"
C "github.com/metacubex/mihomo/constant"
@@ -78,7 +79,7 @@ func main() {
}
if geodataMode {
C.GeodataMode = true
geodata.SetGeodataMode(true)
}
if configString != "" {
@@ -140,7 +141,7 @@ func main() {
log.Fatalln("Parse config error: %s", err.Error())
}
if C.GeoAutoUpdate {
if updater.GeoAutoUpdate() {
updater.RegisterGeoUpdater()
}