adds building of blockV6.list
This commit is contained in:
parent
bd349219bf
commit
963ef048db
1 changed files with 13 additions and 0 deletions
13
buildAdBlocklistv6.sh
Executable file
13
buildAdBlocklistv6.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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
|
Loading…
Reference in a new issue