From aff79f5d032c3354c0c1d491772b49d1e71350c9 Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Wed, 14 Feb 2024 21:38:59 +0100 Subject: [PATCH] addressing file not found, remove unused dict --- etc/server.conf.sample | 4 ++-- mmdb_server/mmdb_server.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/server.conf.sample b/etc/server.conf.sample index 23e060f..fe69826 100644 --- a/etc/server.conf.sample +++ b/etc/server.conf.sample @@ -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 diff --git a/mmdb_server/mmdb_server.py b/mmdb_server/mmdb_server.py index ce35181..63c61cd 100644 --- a/mmdb_server/mmdb_server.py +++ b/mmdb_server/mmdb_server.py @@ -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']