Merge pull request #3 from CyberRoute/main

addressing couple of FileNotFoundError and unused empty {}
This commit is contained in:
Alexandre Dulaunoy 2024-02-14 22:08:53 +01:00 committed by GitHub
commit 8a214c9963
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -1,5 +1,5 @@
[global]
mmdb_file = ../db/GeoOpen-Country.mmdb,../db/GeoOpen-Country-ASN.mmdb
country_file = ../db/country.json
mmdb_file = db/GeoOpen-Country.mmdb,db/GeoOpen-Country-ASN.mmdb
country_file = db/country.json
lookup_pubsub = no
port = 8000

View file

@ -101,7 +101,6 @@ class MyGeoLookup:
ret = []
ips = req.access_route
for mmdb in mmdbs:
m = {}
georesult = mmdb['reader'].get(ips[0])
m = mmdb.copy()
del m['reader']