wireguard-apple icon indicating copy to clipboard operation
wireguard-apple copied to clipboard

Fix of issue of modification on active tunnel

Open suquant opened this issue 2 years ago • 1 comments

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.

suquant avatar Dec 07 '21 11:12 suquant

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

s4w4j4 avatar Mar 25 '22 23:03 s4w4j4