wireguard: Regular reresolve endpoint address 88/261188/1
authorDaniel Wagner <wagi@monom.org>
Sun, 22 Mar 2020 19:50:52 +0000 (20:50 +0100)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 13 Jul 2021 06:20:17 +0000 (11:50 +0530)
commitcce6ed197cf6503e5ff068c2a25ad8f435b12068
tree0054c33250cd2b077d36b9a742c4ac5b365be720
parentfac1c8b4bd3f6853d8548ad40902fdf25b345f94
wireguard: Regular reresolve endpoint address

In case the WireGuard endpoint is hosted on a dynamic IP address, the
endpoint might change during runtime. Reresolve the endpoint on a
regular basis and update the WireGuard device when it IP address has
changed.

Reported by Christian Hewitt

Change-Id: Ice3b554a064585fb03ae8a7a89baccbe53e8576b
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
vpn/plugins/wireguard.c