refactor(handler/forward): extract 6 helpers from remote Handle, add 44 unit tests

Extract newRecorderObject, selectTarget, sniffingDial, buildSniffer,
handleSniffedProtocol, and handleRawForwarding from Handle (200→87 lines).
Move nil Router guard before sniffing for early failure. Log previously
silent sniff and pipe errors at Debug level. Apply readTimeout to Pipe.
Append :0 when target addr lacks a port. Reorder metadata fields and
add doc comments on all exported symbols.
This commit is contained in:
ginuerzh
2026-05-28 20:40:13 +08:00
parent 9eeb88e6a2
commit 776f045896
3 changed files with 1317 additions and 96 deletions
File diff suppressed because it is too large Load Diff