builds ipv4 and ipv6 block.list into one file

This commit is contained in:
Tristan 2023-09-06 13:13:59 +02:00
parent 963ef048db
commit 54085b0dc5
4 changed files with 236721 additions and 236733 deletions

236719
block.list

File diff suppressed because it is too large Load diff

236719
blockV6.list

File diff suppressed because it is too large Load diff

View file

@ -7,7 +7,8 @@ awk -F'[\t ]+' '{
host=$1
}
if (!match(host, /^(localhost|local|localhost.localdomain|ip6-localnet|ip6-localhost$)$/)) {
print "127.0.0.1 " host
print "127.0.0.1 " host
print "::1 " host
}
}
}' adlists/* | sort > block.list

View file

@ -1,13 +0,0 @@
#!/bin/bash
awk -F'[\t ]+' '{
if (!match($0, /^[\t ]*(#|$)/)) {
if (NF>=2 && length($2)) {
host=$2
} else {
host=$1
}
if (!match(host, /^(localhost|local|localhost.localdomain|ip6-localnet|ip6-localhost$)$/)) {
print "::1 " host
}
}
}' adlists/* | sort > blockV6.list