mirror of
https://github.com/safing/portmaster
synced 2025-09-02 18:49:14 +00:00
Add geoip.IsInitialized to expose if the databases have been loaded
This commit is contained in:
parent
c442a7e51c
commit
b392a1e8ff
1 changed files with 5 additions and 0 deletions
|
@ -26,3 +26,8 @@ func GetLocation(ip net.IP) (*Location, error) {
|
||||||
record.FillMissingInfo()
|
record.FillMissingInfo()
|
||||||
return record, nil
|
return record, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsInitialized returns whether the geoip database has been initialized.
|
||||||
|
func IsInitialized(v6, wait bool) bool {
|
||||||
|
return worker.GetReader(v6, wait) != nil
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue