mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-05 20:58:28 +02:00
Added external geoip db option
- Added support for loading geoip db from external file - Added -update_geoip flag for automatically update the geoip
This commit is contained in:
@@ -114,6 +114,7 @@ func startupSequence() {
|
||||
geodbStore, err = geodb.NewGeoDb(sysdb, &geodb.StoreOptions{
|
||||
AllowSlowIpv4LookUp: !*enableHighSpeedGeoIPLookup,
|
||||
AllowSlowIpv6Lookup: !*enableHighSpeedGeoIPLookup,
|
||||
Logger: SystemWideLogger,
|
||||
SlowLookupCacheClearInterval: GEODB_CACHE_CLEAR_INTERVAL * time.Minute,
|
||||
})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user