mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-10-29 05:33:45 +00:00
d099239e3e5dab48005487ee19f3dd87e7e7fec5
Collect line framing, password redaction and oversized-line discard in one SslocalOutputIntake and dispatch redacted lines through a destination seam: stderr (freopen'd into agent.log, raw capture kept for ADR-0006 local viewing) and the unified log under category "sslocal", reusing the shared subsystem. Upstream free text is never routed through RuntimeLogEvent and is marked private in the unified log as a whole (ADR-0014 warns default upstream logs may contain server addresses). Levels derive from whitespace-separated upstream level tokens: ERROR maps to .error, WARN/WARNING maps to .default (unified logging has no warning level), and anything else maps to .info so the unified-log surface persists only detected problems while agent.log stays the persistent surface. The intake lives in Domain/Runtime so the hostless test mirror compiles it; unit tests drive raw chunks against fake destinations instead of parsing agent.log text. The 1 MiB agent.log retention policy deliberately stays on the file side shared with wrapper event lines.
ShadowsocksX-NG
🚧 重新实现进行中 —— 本仓库正在使用现代技术栈重写 ShadowsocksX-NG macOS 客户端。
新实现位于 ShadowsocksX-NG2/,面向 macOS 15+ / Apple Silicon(arm64)。外部二进制使用上游发布产物,不再通过 git 子模块在仓库内构建。
开发入口
- 首次构建与常用命令
- 开发指南:统一验证、测试证据、代码风格工具与 Git hooks。
- 工程与专题文档:源码布局、供应链与签名、规则快照、配置说明。
- 术语表与架构决策记录(ADR);文档语言约定见开发指南。
旧版归档
旧版工程源码已从本仓库移除,归档在 shadowsocks/ShadowsocksX-NG 的 legacy-v1 分支,仅供参考,不保证可构建。旧版功能说明与使用文档见 legacy-v1 的 README。
Languages
Swift
95.8%
Python
2.5%
Shell
1.4%
C
0.3%