mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
unbound: Do not update the forwarders when we are running in TLS mode
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -302,9 +302,13 @@ resolve() {
|
||||
}
|
||||
|
||||
update_forwarders() {
|
||||
# DO nothing when we do not use the ISP name servers
|
||||
# Do nothing when we do not use the ISP name servers
|
||||
[ "${USE_ISP_NAMESERVERS}" != "on" ] && return 0
|
||||
|
||||
# We cannot update anything when using TLS
|
||||
# Unbound will then try to connect to the servers using UDP on port 853
|
||||
[ "${PROTO}" = "TLS" ] && return 0
|
||||
|
||||
# Update unbound about the new servers
|
||||
local nameservers=( $(read_name_servers) )
|
||||
if [ -n "${nameservers[*]}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user