配置app group文件
This commit is contained in:
parent
95fe9c4d35
commit
ab0ee1ccf9
@ -10,7 +10,7 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.application-groups</key>
|
<key>com.apple.security.application-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>$(TeamIdentifierPrefix)</string>
|
<string>group.com.jihe.punchnetmac</string>
|
||||||
</array>
|
</array>
|
||||||
<key>com.apple.security.network.client</key>
|
<key>com.apple.security.network.client</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|||||||
@ -110,13 +110,6 @@ class AppContext {
|
|||||||
try await self.vpnManager.enableVpn(options: options)
|
try await self.vpnManager.enableVpn(options: options)
|
||||||
self.networkContext = context
|
self.networkContext = context
|
||||||
self.vpnOptions = options
|
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/>
|
<true/>
|
||||||
<key>com.apple.security.application-groups</key>
|
<key>com.apple.security.application-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>$(TeamIdentifierPrefix)</string>
|
<string>group.com.jihe.punchnetmac</string>
|
||||||
</array>
|
</array>
|
||||||
<key>com.apple.security.files.user-selected.read-only</key>
|
<key>com.apple.security.files.user-selected.read-only</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user