Rename find path

This commit is contained in:
世界
2022-07-06 14:44:51 +08:00
parent 86a38a1c7e
commit dcd7ca78fc
2 changed files with 3 additions and 3 deletions

View File

@@ -307,7 +307,7 @@ func (r *Router) prepareGeoIPDatabase() error {
geoPath = r.geoIPOptions.Path
} else {
geoPath = "geoip.db"
if foundPath, loaded := C.Find(geoPath); loaded {
if foundPath, loaded := C.FindPath(geoPath); loaded {
geoPath = foundPath
}
}
@@ -342,7 +342,7 @@ func (r *Router) prepareGeositeDatabase() error {
geoPath = r.geoIPOptions.Path
} else {
geoPath = "geosite.db"
if foundPath, loaded := C.Find(geoPath); loaded {
if foundPath, loaded := C.FindPath(geoPath); loaded {
geoPath = foundPath
}
}