diff --git a/punchnet.xcodeproj/project.pbxproj b/punchnet.xcodeproj/project.pbxproj
index 722b3e5..d89d99c 100644
--- a/punchnet.xcodeproj/project.pbxproj
+++ b/punchnet.xcodeproj/project.pbxproj
@@ -546,6 +546,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = punchnet/punchnet.entitlements;
+ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
@@ -574,6 +575,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = punchnet/punchnet.entitlements;
+ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
diff --git a/punchnet/VPNManager.swift b/punchnet/VPNManager.swift
index 0108cf3..9f780a3 100644
--- a/punchnet/VPNManager.swift
+++ b/punchnet/VPNManager.swift
@@ -73,14 +73,14 @@ class VPNManager: ObservableObject {
let managers = try await NETunnelProviderManager.loadAllFromPreferences()
let manager = managers.first ?? NETunnelProviderManager()
- manager.localizedDescription = "sdlan"
+ manager.localizedDescription = "punchnet"
manager.isEnabled = true
// 设置相关参数,在PacketTunnel中可以用
let protocolConfiguration = NETunnelProviderProtocol()
- protocolConfiguration.serverAddress = "sdlan"
+ protocolConfiguration.serverAddress = "punchnet"
protocolConfiguration.providerConfiguration = [String:AnyObject]()
- protocolConfiguration.providerBundleIdentifier = "com.jihe.sdlan.Tun"
+ protocolConfiguration.providerBundleIdentifier = "com.jihe.punchnet.Tun"
manager.protocolConfiguration = protocolConfiguration
manager.isOnDemandEnabled = false
diff --git a/punchnet/punchnet.entitlements b/punchnet/punchnet.entitlements
index 18aff0c..afae4c9 100644
--- a/punchnet/punchnet.entitlements
+++ b/punchnet/punchnet.entitlements
@@ -1,10 +1,28 @@
-
- com.apple.security.app-sandbox
-
- com.apple.security.files.user-selected.read-only
-
-
+
+ com.apple.developer.networking.networkextension
+
+ packet-tunnel-provider
+
+ com.apple.developer.networking.vpn.api
+
+ allow-vpn
+
+ com.apple.developer.system-extension.install
+
+ com.apple.security.app-sandbox
+
+ com.apple.security.application-groups
+
+ $(TeamIdentifierPrefix)
+
+ com.apple.security.files.user-selected.read-only
+
+ com.apple.security.network.client
+
+ com.apple.security.network.server
+
+
diff --git a/punchnet/sdlan.entitlements b/punchnet/sdlan.entitlements
deleted file mode 100644
index 3e702e4..0000000
--- a/punchnet/sdlan.entitlements
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
- com.apple.developer.networking.networkextension
-
- packet-tunnel-provider
-
- com.apple.developer.networking.vpn.api
-
- allow-vpn
-
- com.apple.developer.system-extension.install
-
- com.apple.security.app-sandbox
-
- com.apple.security.application-groups
-
- $(TeamIdentifierPrefix)
-
- com.apple.security.files.user-selected.read-only
-
- com.apple.security.network.client
-
- com.apple.security.network.server
-
-
-