Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sub2rbl
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ uciLoad rbl | while read rbl ; do
sed -n 's/^.*|.*| *\([0-9\.][0-9\.]*\) .*$/\1/p' "$tmpFile" > "$tmpFile2"
else
logLine 3 "Loading plain IP list"
sed -n 's/^ *\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ]*.*$/\1/p' "$tmpFile" > "$tmpFile2"
sed -n 's/^ *\([1-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ]*.*$/\1/p' "$tmpFile" > "$tmpFile2"
fi
elif [ $setType = net ] ; then
logLine 3 "Loading plain Net list"
sed -n 's#^ *\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[/0-9]*\)[ ]*.*$#\1#p' "$tmpFile" > "$tmpFile2"
sed -n 's#^ *\([1-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*[/0-9]*\)[ ]*.*$#\1#p' "$tmpFile" > "$tmpFile2"
fi
if [ -n "$whiteList" ] ; then
logLine 3 "Applying whitelist"
Expand Down