From bbbf2d3a717dac7ce32c8afec7ad7a8da6d54722 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Thu, 18 Aug 2022 00:42:45 +0800 Subject: [PATCH] Fix geosite path `geoIPOptions` -> `geositeOptions` Signed-off-by: Tianling Shen --- route/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/route/router.go b/route/router.go index 9e95e1c1..30d64909 100644 --- a/route/router.go +++ b/route/router.go @@ -787,7 +787,7 @@ func (r *Router) prepareGeoIPDatabase() error { func (r *Router) prepareGeositeDatabase() error { var geoPath string if r.geositeOptions.Path != "" { - geoPath = r.geoIPOptions.Path + geoPath = r.geositeOptions.Path } else { geoPath = "geosite.db" if foundPath, loaded := C.FindPath(geoPath); loaded { @@ -874,12 +874,12 @@ func (r *Router) downloadGeositeDatabase(savePath string) error { } else { downloadURL = "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db" } - r.logger.Info("downloading geoip database") + r.logger.Info("downloading geosite database") var detour adapter.Outbound if r.geositeOptions.DownloadDetour != "" { outbound, loaded := r.Outbound(r.geositeOptions.DownloadDetour) if !loaded { - return E.New("detour outbound not found: ", r.geoIPOptions.DownloadDetour) + return E.New("detour outbound not found: ", r.geositeOptions.DownloadDetour) } detour = outbound } else {