better fix for vpn connecting

This commit is contained in:
Amir Mohammadi
2024-01-11 15:10:26 +03:30
parent ba509ba3b2
commit 5fc21ca40d
2 changed files with 97 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ class VPNManager: ObservableObject {
}
let newManager = NETunnelProviderManager()
let `protocol` = NETunnelProviderProtocol()
`protocol`.providerBundleIdentifier = "\(Bundle.main.baseBundleIdentifier).SingBoxPacketTunnel"
`protocol`.providerBundleIdentifier = "com.hiddify.ios.SingBoxPacketTunnel"
`protocol`.serverAddress = "localhost"
newManager.protocolConfiguration = `protocol`
newManager.localizedDescription = "Hiddify"