From 7858ca6cc57fbca20f9a64129312a0bb8e59cafc Mon Sep 17 00:00:00 2001 From: adlyq Date: Fri, 27 May 2022 12:16:04 +0800 Subject: [PATCH] fix: geox url setting --- config/initial.go | 6 +++--- config/updateGeo.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/initial.go b/config/initial.go index 83c3e38b..ce47c4d6 100644 --- a/config/initial.go +++ b/config/initial.go @@ -158,10 +158,10 @@ func Init(dir string) error { } if !C.GeodataMode { C.GeodataMode = rawCfg.GeodataMode - C.GeoIpUrl = rawCfg.GeoXUrl.GeoIp - C.GeoSiteUrl = rawCfg.GeoXUrl.GeoSite - C.MmdbUrl = rawCfg.GeoXUrl.Mmdb } + C.GeoIpUrl = rawCfg.GeoXUrl.GeoIp + C.GeoSiteUrl = rawCfg.GeoXUrl.GeoSite + C.MmdbUrl = rawCfg.GeoXUrl.Mmdb // initial GeoIP if err := initGeoIP(); err != nil { return fmt.Errorf("can't initial GeoIP: %w", err) diff --git a/config/updateGeo.go b/config/updateGeo.go index 2dfb8fa0..a78a0320 100644 --- a/config/updateGeo.go +++ b/config/updateGeo.go @@ -19,7 +19,7 @@ func UpdateGeoDatabases() error { if C.GeodataMode { if err := downloadGeoIP(tmpGepIP); err != nil { - return fmt.Errorf("can't download MMDB database file: %w", err) + return fmt.Errorf("can't download GeoIP database file: %w", err) } if err := verifyGeoSite("temp_geoip.dat"); err != nil {