配置app group文件
This commit is contained in:
parent
95fe9c4d35
commit
ab0ee1ccf9
@ -10,7 +10,7 @@
|
||||
<true/>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>$(TeamIdentifierPrefix)</string>
|
||||
<string>group.com.jihe.punchnetmac</string>
|
||||
</array>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
|
||||
@ -110,13 +110,6 @@ class AppContext {
|
||||
try await self.vpnManager.enableVpn(options: options)
|
||||
self.networkContext = context
|
||||
self.vpnOptions = options
|
||||
|
||||
// TODO
|
||||
Task {
|
||||
try await Task.sleep(for: .seconds(5))
|
||||
let resp = try await self.vpnManager.sendMessage("hello vpn".data(using: .utf8)!)
|
||||
NSLog("resp: \(String(data: resp, encoding: .utf8))")
|
||||
}
|
||||
}
|
||||
|
||||
// 断开网络连接
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
<true/>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>$(TeamIdentifierPrefix)</string>
|
||||
<string>group.com.jihe.punchnetmac</string>
|
||||
</array>
|
||||
<key>com.apple.security.files.user-selected.read-only</key>
|
||||
<true/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user