mirror of
https://github.com/wweir/sower.git
synced 2026-10-19 16:14:33 +00:00
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