Cherry-picked from commit
3c04a6d235346f82b9c5a79baeee1367eeb2a979.
Force restart stubby if any of the trigger interfaces goes up or down. Avoids DoT DNS lookup timeouts when default route changes, in case of multiple
upstream interfaces.
Signed-off-by: Aquila Cooper <aquila@cpr.is>
for trigger_item in $trigger
do
- procd_add_interface_trigger "interface.*.up" "$trigger_item" "$stubby_init" start
+ procd_add_interface_trigger "interface.*" "$trigger_item" "$stubby_init" restart
done
procd_add_reload_trigger "stubby"