[openwrt/openwrt] wireguard-tools: add protocol renew handler
LEDE Commits
lede-commits at lists.infradead.org
Sun Feb 8 15:53:16 PST 2026
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/3a31d73d28bb7c6677f5ef56b98d348a4e3b0c79
commit 3a31d73d28bb7c6677f5ef56b98d348a4e3b0c79
Author: Paul Donald <newtwen+github at gmail.com>
AuthorDate: Sat Jan 31 15:56:28 2026 +0100
wireguard-tools: add protocol renew handler
- add a renew handler
- add a peer detect handler
( benefits from https://github.com/openwrt/netifd/pull/66 )
Signed-off-by: Paul Donald <newtwen+github at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21784
Signed-off-by: Robert Marko <robimarko at gmail.com>
(cherry picked from commit 400742a855e2d3e2288ba3b224037bc464dbbdf2)
Link: https://github.com/openwrt/openwrt/pull/21840
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
package/network/utils/wireguard-tools/files/wireguard.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/network/utils/wireguard-tools/files/wireguard.sh b/package/network/utils/wireguard-tools/files/wireguard.sh
index ca9da81032..78a432a8d1 100644
--- a/package/network/utils/wireguard-tools/files/wireguard.sh
+++ b/package/network/utils/wireguard-tools/files/wireguard.sh
@@ -16,6 +16,9 @@ fi
}
proto_wireguard_init_config() {
+ renew_handler=1
+ peer_detect=1
+
proto_config_add_string "private_key"
proto_config_add_int "listen_port"
proto_config_add_int "mtu"
@@ -203,6 +206,11 @@ proto_wireguard_setup() {
proto_send_update "${config}"
}
+proto_wireguard_renew() {
+ local interface="$1"
+ proto_wireguard_setup "$interface"
+}
+
proto_wireguard_teardown() {
local config="$1"
ip link del dev "${config}" >/dev/null 2>&1
More information about the lede-commits
mailing list