mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Remove geoip db loading fallback with binary index
This commit is contained in:
parent
f26e61ed15
commit
5ffb637321
1 changed files with 2 additions and 9 deletions
|
@ -56,16 +56,9 @@ func (ub *updateBroadcaster) AvailableUpdate() *updates.Artifact {
|
|||
// Get artifact.
|
||||
artifact, err := module.instance.IntelUpdates().GetFile(ub.dbName)
|
||||
if err != nil {
|
||||
// Check if the geoip database is included in the binary index instead.
|
||||
// TODO: Remove when intelhub builds the geoip database.
|
||||
if artifact2, err2 := module.instance.BinaryUpdates().GetFile(ub.dbName); err2 == nil {
|
||||
artifact = artifact2
|
||||
err = nil
|
||||
} else {
|
||||
log.Warningf("geoip: failed to get geoip update: %s", err)
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// Return artifact if not yet initialized.
|
||||
if ub.db == nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue