mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/bind: set rcvar for dnsbl types; closes #1026
This commit is contained in:
@@ -137,7 +137,14 @@ install() {
|
||||
rm -rf ${WORKDIR}
|
||||
}
|
||||
|
||||
for CAT in $(echo ${1} | tr ',' ' '); do
|
||||
DNSBL=${1}
|
||||
|
||||
if [ -z "${DNSBL}" ]; then
|
||||
. /etc/rc.conf.d/named
|
||||
DNSBL=${named_dnsbl}
|
||||
fi
|
||||
|
||||
for CAT in $(echo ${DNSBL} | tr ',' ' '); do
|
||||
case "${CAT}" in
|
||||
aa)
|
||||
adaway
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{% if helpers.exists('OPNsense.bind.general.enabled') and OPNsense.bind.general.enabled == '1' %}
|
||||
named_var_script="/usr/local/opnsense/scripts/OPNsense/Bind/setup.sh"
|
||||
{% if helpers.exists('OPNsense.bind.dnsbl.enabled') and OPNsense.bind.dnsbl.enabled == '1' %}
|
||||
{% if helpers.exists('OPNsense.bind.dnsbl.type') and OPNsense.bind.dnsbl.type != '' %}
|
||||
named_dnsbl="{{ OPNsense.bind.dnsbl.type }}"
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
named_enable="YES"
|
||||
{% else %}
|
||||
named_enable="NO"
|
||||
|
||||
Reference in New Issue
Block a user