dpl/macos-client/README.md

33 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# DP-LINK macOS 开发预览
原生 SwiftUI 客户端,macOS 13+,无需 npm。
## 运行
```bash
cd /private/var/www/wwwroot/dpl/macos-client
swift run
```
后端开发环境先在项目根目录运行 `php artisan serve --host=127.0.0.1 --port=8000`。
客户端填入 XBoard 地址和已有账户。远程服务器要求 HTTPS。
登录成功后选择官方 Mihomo 的可执行文件;也可以选择本机已经安装的 Clash Verge 中的
`/Applications/Clash Verge.app/Contents/MacOS/verge-mihomo`。
本项目没有复制或分发第三方内核。分发产品前应按所选内核的许可证处理授权和源码义务。
## 已实现
- XBoard 登录和订阅获取,密码与认证信息只存内存。
- Mihomo HTTP 订阅 provider 获取节点,认证控制接口仅监听本机。
- 本地 HTTP/SOCKS5 代理 `127.0.0.1:17899`,选择节点、断开连接。
- 临时配置目录权限 0700、配置文件权限 0600,断开后清理。
## 尚未完成
- 系统代理自动接管与旧设置恢复、TUN、权限 helper。
- 内核打包、签名与公证、断线恢复、自动更新。
- 真实账号与真实节点的端到端连接验证。
目前只是开发预览,启动代理后需要在使用的应用中配置本地代理;不能视作完成的一键 VPN 客户端。