From 2de779f39b59b8cde0afb60525ff177b699aabff Mon Sep 17 00:00:00 2001 From: Amir Mohammadi Date: Thu, 11 Jan 2024 14:32:52 +0330 Subject: [PATCH] fixing not connecting to vpn --- ios/Runner/VPN/VPNManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Runner/VPN/VPNManager.swift b/ios/Runner/VPN/VPNManager.swift index 670ed557..323485b8 100644 --- a/ios/Runner/VPN/VPNManager.swift +++ b/ios/Runner/VPN/VPNManager.swift @@ -95,7 +95,7 @@ class VPNManager: ObservableObject { let newManager = NETunnelProviderManager() let `protocol` = NETunnelProviderProtocol() `protocol`.providerBundleIdentifier = "\(Bundle.main.baseBundleIdentifier).SingBoxPacketTunnel" - `protocol`.serverAddress = "Hiddify" + `protocol`.serverAddress = "localhost" newManager.protocolConfiguration = `protocol` newManager.localizedDescription = "Hiddify" try await newManager.saveToPreferences()