wireguard-apple
wireguard-apple copied to clipboard
Fix of issue of modification on active tunnel
Signed-off-by: George Kutsurua [email protected]
Hello,
This pr contains a fix for the case when the tunnels manager modifies the active tunnel.
Use case: Once the active tunnel is modified it is sometimes disconnected and does not connect back again, sometimes it is stuck in "waiting" status.
Description of the issue: When we are modifying the active tunnel there process tunnel's status programmatically changes its status to "restarting" and later this status processes properly (connect back disconnected tunnel). But problem is that once the tunnel changes its configuration "reload()" is triggered in "startObservingTunnelConfigurations" function and it is replacing tunnels, so programmatically set status never reaches. It works sometimes well because of "reload" function executes after status processing and sometimes not, depends when reload start's its execution.
Hello, when the IP address of the server changes, the client will lose the VPN connection and must restart the client to recover. Can you help solve this problem? thank you