Merge pull request #7 from axtux/master

Fix IP/domain stripping and database directory
master v0.2
Alexandre Dulaunoy 2020-02-13 13:44:16 +01:00 committed by GitHub
commit 18e42e827e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -81,8 +81,7 @@ def process_format_passivedns(line=None):
for r in v: for r in v:
# trailing dot is removed and avoid case sensitivity # trailing dot is removed and avoid case sensitivity
if i == 4 or i == 6: if i == 4 or i == 6:
r = r[:-1] r = r.lower().strip('.')
r = r.lower()
# timestamp is just epoch - second precision is only required # timestamp is just epoch - second precision is only required
if i == 0: if i == 0:
r = r.split('.')[0] r = r.split('.')[0]

View File

@ -260,7 +260,7 @@ dbfilename dump.rdb
# The Append Only File will also be created inside this directory. # The Append Only File will also be created inside this directory.
# #
# Note that you must specify a directory here, not a file name. # Note that you must specify a directory here, not a file name.
dir ../db dir ./db
################################# REPLICATION ################################# ################################# REPLICATION #################################

View File

@ -14,6 +14,7 @@ fi
python3 -m pip install -r requirements python3 -m pip install -r requirements
# REDIS # # REDIS #
mkdir -p db
test ! -d redis/ && git clone https://github.com/antirez/redis.git test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/ pushd redis/
git checkout 5.0 git checkout 5.0