From f709ba1ee29f7beaabf9fbee34a6d9f24181f081 Mon Sep 17 00:00:00 2001 From: Aquila Cooper Date: Sat, 7 Jan 2023 11:34:00 +0000 Subject: [PATCH] stubby: Restart on interface trigger 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 --- net/stubby/files/stubby.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/stubby/files/stubby.init b/net/stubby/files/stubby.init index 5d0574aedb..5742905002 100755 --- a/net/stubby/files/stubby.init +++ b/net/stubby/files/stubby.init @@ -270,7 +270,7 @@ service_triggers() 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" -- 2.30.2