Files
sower/cmd
wweir 91dc8b7a87 feat(sowerd): add protocol probe abstraction and refactor handleConn
Introduce proxyProtocolHandler interface with Probe/Unwrap methods,
extracting protocol detection from handleConn into a clean pipeline:
probe first bytes → match handler → Unwrap, or fallback by SNI.

- probe.go: probeVerdict enum, proxyProtocolHandler interface,
  sowerProtocolHandler, readProtocolProbe
- handleConn now iterates handlers list, falls through to TLS SNI
  routing on probeNoMatch, and to fake_site on auth failure
- serve443 signature changed: trojan param replaced by []proxyProtocolHandler
2026-06-25 09:20:27 +08:00
..