Update to new geoip database

This commit is contained in:
Patrick Pacher
2020-05-14 07:35:45 +02:00
parent 7a03eed1ff
commit a426b53929
3 changed files with 52 additions and 29 deletions

View File

@@ -27,10 +27,10 @@ func prep() error {
func upgradeDatabases(_ context.Context, _ interface{}) error {
dbFileLock.Lock()
reload := false
if dbCityFile != nil && dbCityFile.UpgradeAvailable() {
if geoDBv4File != nil && geoDBv4File.UpgradeAvailable() {
reload = true
}
if dbASNFile != nil && dbASNFile.UpgradeAvailable() {
if geoDBv6File != nil && geoDBv6File.UpgradeAvailable() {
reload = true
}
dbFileLock.Unlock()