From 658c27ea97a246d313173e38e6962558aebed52b Mon Sep 17 00:00:00 2001 From: Eric Luehrsen Date: Mon, 26 Oct 2020 23:09:18 -0400 Subject: unbound: clean up interface interpretation in UCI DNS flag day 2020, software should reflect the minimum EDNS 1232 bytes. Added iface_wan and iface_lan to control internal DNS assignemnts and to control what is local service ACL. Interface wild cards are not explicitly set so that they can be customized in extended conf. Signed-off-by: Eric Luehrsen --- net/unbound/files/unbound.init | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'net/unbound/files/unbound.init') diff --git a/net/unbound/files/unbound.init b/net/unbound/files/unbound.init index fa94a3b35..fb363e188 100755 --- a/net/unbound/files/unbound.init +++ b/net/unbound/files/unbound.init @@ -9,6 +9,9 @@ # ############################################################################## +# while useful (sh)ellcheck is pedantic and noisy +# shellcheck disable=1091,2002,2004,2034,2039,2086,2094,2140,2154,2155 + START=19 STOP=50 USE_PROCD=1 @@ -54,9 +57,10 @@ stop_service() { ############################################################################## service_triggers() { - local legacy=$( uci_get unbound.@unbound[0].trigger ) - local triggers=$( uci_get unbound.@unbound[0].trigger_interface ) - local trigger="$triggers $legacy" + local legacy1=$( uci_get unbound.@unbound[0].trigger ) + local legacy2=$( uci_get unbound.@unbound[0].trigger_interface ) + local legacy3=$( uci_get unbound.@unbound[0].iface_trig ) + local triggers="$legacy1 $legacy2 $legacy3" . /usr/lib/unbound/defaults.sh -- cgit v1.2.3