Skip to content

Commit

Permalink
Merge pull request #3 from CyberRoute/main
Browse files Browse the repository at this point in the history
addressing couple of FileNotFoundError and unused empty {}
  • Loading branch information
adulau committed Feb 14, 2024
2 parents f09a6e2 + aff79f5 commit 8a214c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etc/server.conf.sample
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion mmdb_server/mmdb_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def on_get(self, req, resp):
ret = []
ips = req.access_route
for mmdb in mmdbs:
m = {}
georesult = mmdb['reader'].get(ips[0])
m = mmdb.copy()
del m['reader']
Expand Down

0 comments on commit 8a214c9

Please sign in to comment.