From d64eeff5f8d38221608efd9ca62ed34148203310 Mon Sep 17 00:00:00 2001 From: Macbook Date: Sat, 28 Dec 2024 20:57:36 +0700 Subject: [PATCH] update NEVPNStatusConnecting for WG --- client/platforms/ios/ios_controller.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/platforms/ios/ios_controller.mm b/client/platforms/ios/ios_controller.mm index e81f5ac77..1a685aa03 100644 --- a/client/platforms/ios/ios_controller.mm +++ b/client/platforms/ios/ios_controller.mm @@ -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;