fix: 修复 iOS 平台 VPN 无法通过导航栏开启的问题

This commit is contained in:
speakeloudest 2026-01-17 19:18:23 -08:00
parent 7017c99f4a
commit 620c34401a

View File

@ -194,7 +194,9 @@ class VPNManager: ObservableObject {
func connect(with config: String, disableMemoryLimit: Bool = false) async throws {
await set(upload: 0, download: 0)
guard state == .disconnected else { return }
// connected
// invalidreasserting
guard state != .connected else { return }
do {
try await enableVPNManager()
try manager.connection.startVPNTunnel(options: [