Skip to content

Commit ba00ff8

Browse files
committed
only remove extrema dots
1 parent df0f021 commit ba00ff8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
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]

0 commit comments

Comments
 (0)