feat(client/macos): 解开 VpnChannel 注册(主 app 接 NETunnelProviderManager)
ci-pangolin / Lint — shellcheck (push) Has been cancelled
ci-pangolin / OpenAPI Sync Check (push) Has been cancelled
ci-pangolin / Redline Scan — 脱敏 (UI 文案) (push) Has been cancelled
ci-pangolin / Flutter — analyze + test (push) Has been cancelled

MainFlutterWindow 启用 VpnChannel.register —— Flutter 经 pangolin/vpn 通道
启停 PacketTunnel(NETunnelProviderManager)。需 VpnChannel.swift 已入 Runner
target 的 Compile Sources。kUseNativeVpnMacOS 仍为 false(待隧道能跑再切)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-19 15:36:38 +08:00
parent 665d4a949d
commit c8df031741
+3 -4
View File
@@ -14,10 +14,9 @@ class MainFlutterWindow: NSWindow {
RegisterGeneratedPlugins(registry: flutterViewController)
// P1 B:VPN VpnChannel.swift Runner target(Compile Sources)
// ,( docs/p1-macos-system-extension.md §3),
// Runner
// VpnChannel.register(with: flutterViewController.registrar(forPlugin: "VpnChannel"))
// P1 B:VPN (NETunnelProviderManager PacketTunnel)
// VpnChannel.swift Runner target Compile Sources
VpnChannel.register(with: flutterViewController.registrar(forPlugin: "VpnChannel"))
super.awakeFromNib()
}