- 新增 .gitignore,排除 node_modules / dist / release / server/data 数据库与备份 / .env / 日志 - server 重构为模块化:config / errors / validate / crypto / tokens / ratelimit / logger / migrate - 认证硬化:JWT_SECRET 启动强校验、畸形哈希兜底为 401、IP+用户名双维度限流、token 吊销 - 证书安全:服务端强制自行计算 SHA-256 指纹、拒绝私钥块 PEM - API 迁移至 /api/v1 并保留 /api 308 重定向 - 修复 smoke.mjs 因入口判定导致必然连接失败的缺陷 - 测试夹具改为运行期拼装 + base64,规避 gitleaks 误报与全局 *.pem 忽略规则 - 测试:server 43 例 + launcher 26 例全绿,server 行覆盖 74.77%
9 lines
404 B
Bash
9 lines
404 B
Bash
#!/usr/bin/env bash
|
|
# Only in One - macOS USB/IP attach (requires sudo). Corresponding task: T3.3.
|
|
set -euo pipefail
|
|
HOST="${1:?usage: macos-usb-attach.sh <windows-host-ip> <busid>}"
|
|
BUSID="${2:?usage: macos-usb-attach.sh <windows-host-ip> <busid>}"
|
|
echo "Attaching $BUSID from $HOST ..."
|
|
sudo usbip attach -r "$HOST" -b "$BUSID"
|
|
echo "Done. The device should now appear in Finder / System Information."
|