Skip to content

Commit

Permalink
update NEVPNStatusConnecting for WG
Browse files Browse the repository at this point in the history
  • Loading branch information
Macbook committed Dec 28, 2024
1 parent c9003f5 commit d64eeff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/platforms/ios/ios_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@
NETunnelProviderProtocol *tunnelProtocol = (NETunnelProviderProtocol *)m_currentTunnel.protocolConfiguration;
if (session /* && session == TunnelManager.session */ ) {
qDebug() << "IosController::vpnStatusDidChange" << iosStatusToState(session.status) << session;
if (tunnelProtocol.providerConfiguration[@"wireguard"] != nil && session.status == NEVPNStatusConnected)
if (tunnelProtocol.providerConfiguration[@"wireguard"] != nil &&
(session.status == NEVPNStatusConnected || session.status == NEVPNStatusConnecting))
{
// use last_handshake_time for check status connected for WireGuard
return;
Expand Down

0 comments on commit d64eeff

Please sign in to comment.