Skip to content

Commit 18e42e8

Browse files
authored
Merge pull request #7 from axtux/master
Fix IP/domain stripping and database directory
2 parents df0f021 + c09ef66 commit 18e42e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/pdns-ingestion.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ def process_format_passivedns(line=None):
8181
for r in v:
8282
# trailing dot is removed and avoid case sensitivity
8383
if i == 4 or i == 6:
84-
r = r[:-1]
85-
r = r.lower()
84+
r = r.lower().strip('.')
8685
# timestamp is just epoch - second precision is only required
8786
if i == 0:
8887
r = r.split('.')[0]

etc/redis.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ dbfilename dump.rdb
260260
# The Append Only File will also be created inside this directory.
261261
#
262262
# Note that you must specify a directory here, not a file name.
263-
dir ../db
263+
dir ./db
264264

265265
################################# REPLICATION #################################
266266

install_server.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fi
1414
python3 -m pip install -r requirements
1515

1616
# REDIS #
17+
mkdir -p db
1718
test ! -d redis/ && git clone https://github.com/antirez/redis.git
1819
pushd redis/
1920
git checkout 5.0

0 commit comments

Comments
 (0)