diff --git a/SystemExtension/PacketTunnelProvider.swift b/SystemExtension/PacketTunnelProvider.swift index 1d5dccc..4db3009 100644 --- a/SystemExtension/PacketTunnelProvider.swift +++ b/SystemExtension/PacketTunnelProvider.swift @@ -9,6 +9,7 @@ class PacketTunnelProvider: ExtensionProvider { } let username = usernameObject as! NSString FilePath.sharedDirectory = URL(filePath: "/Users/\(username)/Library/Group Containers/\(FilePath.groupName)") + FilePath.iCloudDirectory = URL(filePath: "/Users/\(username)/Library/Mobile Documents/iCloud~\(FilePath.packageName.replacingOccurrences(of: ".", with: "~"))").appendingPathComponent("Documents", isDirectory: true) self.username = String(username) try await super.startTunnel(options: options) }