opnsense-plugins/dns/dnscrypt-proxy/src
Andrei Hodorog fb59f87e99
dns/dnscrypt-proxy: fix bootstrap_resolvers with multiple comma-separated servers (#5163)
When multiple bootstrap resolvers are configured in the "Fallback Resolver"
field (e.g., "1.1.1.1:53,9.9.9.9:53"), the generated config incorrectly
places the comma inside a single string:

  bootstrap_resolvers = ['1.1.1.1:53,9.9.9.9:53']

This causes dnscrypt-proxy to fail with:

  [FATAL] Bootstrap resolver [...]: Host does not parse as IP '1.1.1.1:53,9.9.9.9:53'

The fix applies the same split/join pattern already used for listen_addresses,
server_names, disabled_server_names, and relaylist in the same template:

  bootstrap_resolvers = ['1.1.1.1:53','9.9.9.9:53']

This bug was introduced in commit 1eec51a65 which renamed fallback_resolver
to bootstrap_resolvers but did not update the template syntax from a single
string to a TOML array format.
2026-02-10 16:31:42 +01:00
..
etc/inc/plugins.inc.d dns/dnscrypt-proxy: fix listening madness, why do DNS services reinvent wheels? 2023-05-08 10:24:11 +02:00
opnsense dns/dnscrypt-proxy: fix bootstrap_resolvers with multiple comma-separated servers (#5163) 2026-02-10 16:31:42 +01:00