mirror of
https://github.com/adulau/mmdb-server.git
synced 2024-11-21 17:27:04 +00:00
Merge pull request #3 from CyberRoute/main
addressing couple of FileNotFoundError and unused empty {}
This commit is contained in:
commit
8a214c9963
2 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
[global]
|
[global]
|
||||||
mmdb_file = ../db/GeoOpen-Country.mmdb,../db/GeoOpen-Country-ASN.mmdb
|
mmdb_file = db/GeoOpen-Country.mmdb,db/GeoOpen-Country-ASN.mmdb
|
||||||
country_file = ../db/country.json
|
country_file = db/country.json
|
||||||
lookup_pubsub = no
|
lookup_pubsub = no
|
||||||
port = 8000
|
port = 8000
|
||||||
|
|
|
@ -101,7 +101,6 @@ class MyGeoLookup:
|
||||||
ret = []
|
ret = []
|
||||||
ips = req.access_route
|
ips = req.access_route
|
||||||
for mmdb in mmdbs:
|
for mmdb in mmdbs:
|
||||||
m = {}
|
|
||||||
georesult = mmdb['reader'].get(ips[0])
|
georesult = mmdb['reader'].get(ips[0])
|
||||||
m = mmdb.copy()
|
m = mmdb.copy()
|
||||||
del m['reader']
|
del m['reader']
|
||||||
|
|
Loading…
Reference in a new issue