fix: KCP日志在A端记录

This commit is contained in:
2026-04-11 20:43:14 +08:00
parent 9009107a64
commit d819f9ca4d
6 changed files with 181 additions and 3 deletions

View File

@@ -34,10 +34,13 @@ Server `D` runs the KCP hub on `0.0.0.0:10909`:
```bash
./bin/kcpserver -listen 0.0.0.0:10909 \
-telemetry-peer peer-a-telemetry \
-kcp-ts-debug-log logs/d-kcp-ts.jsonl \
-kcp-session-stats-log logs/d-kcp-stats.jsonl
-telemetry-interval 1000ms \
-kcp-session-stats-log logs/d-kcp-stats.jsonl \
-kcp-session-stats-interval 1000ms
```
For multi-hour runs, keep `-latency-log` and `-kcp-ts-debug-log` off unless you are collecting a short repro trace.
Relay `C` runs a raw UDP forwarder to `D`:
```bash