mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
plugins: whitespace sweep
This commit is contained in:
@@ -215,10 +215,10 @@ install() {
|
||||
for FILE in $(find ${WORKDIR} -type f); do
|
||||
WHITE=$(cat ${DESTDIR}/whitelist.inc | tr ',' '|')
|
||||
if [ -z "${WHITE}" ]; then
|
||||
cat ${FILE} | sort -u | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
|
||||
cat ${FILE} | sort -u | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
|
||||
else
|
||||
cat ${FILE} | sort -u | egrep -v "$WHITE" | awk '{printf "server:\n", $1; printf "local-data: \"%s A 0.0.0.0\"\n", $1}' > ${FILE}.inc
|
||||
fi
|
||||
fi
|
||||
done
|
||||
# Merge resulting files (/dev/null in case there are none)
|
||||
cat $(find ${WORKDIR} -type f -name "*.inc") /dev/null > ${DESTDIR}/dnsbl.conf
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<all>All</all>
|
||||
<ipv4>IPv4</ipv4>
|
||||
<ipv6>IPv6</ipv6>
|
||||
</OptionValues>
|
||||
</OptionValues>
|
||||
</ip_version>
|
||||
<bind_address type="NetworkField">
|
||||
<Required>N</Required>
|
||||
|
||||
Reference in New Issue
Block a user