Skip to content

Commit

Permalink
Merge pull request #7 from axtux/master
Browse files Browse the repository at this point in the history
Fix IP/domain stripping and database directory
  • Loading branch information
adulau authored Feb 13, 2020
2 parents df0f021 + c09ef66 commit 18e42e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions bin/pdns-ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def process_format_passivedns(line=None):
for r in v:
# trailing dot is removed and avoid case sensitivity
if i == 4 or i == 6:
r = r[:-1]
r = r.lower()
r = r.lower().strip('.')
# timestamp is just epoch - second precision is only required
if i == 0:
r = r.split('.')[0]
Expand Down
2 changes: 1 addition & 1 deletion etc/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ dbfilename dump.rdb
# The Append Only File will also be created inside this directory.
#
# Note that you must specify a directory here, not a file name.
dir ../db
dir ./db

################################# REPLICATION #################################

Expand Down
1 change: 1 addition & 0 deletions install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ fi
python3 -m pip install -r requirements

# REDIS #
mkdir -p db
test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/
git checkout 5.0
Expand Down

0 comments on commit 18e42e8

Please sign in to comment.