aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuardNetworkExtension
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-28 00:33:31 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:28 +0530
commitd7d4355f5efa9c78d721392c4d7d6474105f29c8 (patch)
tree89b338d97b44499a08a407f4bb8536ea16b55f2a /WireGuard/WireGuardNetworkExtension
parentmacOS: Add Network Extensions capability to app (diff)
downloadwireguard-apple-d7d4355f5efa9c78d721392c4d7d6474105f29c8.tar.xz
wireguard-apple-d7d4355f5efa9c78d721392c4d7d6474105f29c8.zip
Make app groups work on both iOS and macOS
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuardNetworkExtension')
-rw-r--r--WireGuard/WireGuardNetworkExtension/Info.plist4
-rw-r--r--WireGuard/WireGuardNetworkExtension/WireGuardNetworkExtension_macOS.entitlements8
2 files changed, 9 insertions, 3 deletions
diff --git a/WireGuard/WireGuardNetworkExtension/Info.plist b/WireGuard/WireGuardNetworkExtension/Info.plist
index 1075c53..0b32ba2 100644
--- a/WireGuard/WireGuardNetworkExtension/Info.plist
+++ b/WireGuard/WireGuardNetworkExtension/Info.plist
@@ -30,6 +30,8 @@
<string>$(PRODUCT_MODULE_NAME).PacketTunnelProvider</string>
</dict>
<key>com.wireguard.ios.app_group_id</key>
- <string>group.$(APP_ID_IOS)</string>
+ <string>group.$(APP_ID_IOS)</string>
+ <key>com.wireguard.macos.app_group_id</key>
+ <string>$(DEVELOPMENT_TEAM).group.$(APP_ID_MACOS)</string>
</dict>
</plist>
diff --git a/WireGuard/WireGuardNetworkExtension/WireGuardNetworkExtension_macOS.entitlements b/WireGuard/WireGuardNetworkExtension/WireGuardNetworkExtension_macOS.entitlements
index 3a24a44..a54ac34 100644
--- a/WireGuard/WireGuardNetworkExtension/WireGuardNetworkExtension_macOS.entitlements
+++ b/WireGuard/WireGuardNetworkExtension/WireGuardNetworkExtension_macOS.entitlements
@@ -2,11 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>com.apple.security.app-sandbox</key>
- <true/>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>packet-tunnel-provider</string>
</array>
+ <key>com.apple.security.app-sandbox</key>
+ <true/>
+ <key>com.apple.security.application-groups</key>
+ <array>
+ <string>$(DEVELOPMENT_TEAM).group.$(APP_ID_MACOS)</string>
+ </array>
</dict>
</plist>