mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
Domain-only whitelist bypass never matched the bare destination IP, so the pre-sniffing bypass check (fe394a8) rejected connections before SNI sniffing could match the sniffed host (gost#899). - skip the pre-sniffing check when bypass IsWhitelist(); the sniffer applies the whitelist against the sniffed host - restore the post-sniffing bypass check on dstAddr (removed byfe394a8) so whitelist mode still rejects non-matching hosts on the sniffingFallback path and when sniffing is disabled - bypassGroup.IsWhitelist() now reports true only for all-whitelist groups instead of always false (sole external consumer is the redirect handler) - rewrite handler tests to drive a real TLS ClientHello through Init()'d metadata: whitelisted SNI is forwarded, non-whitelisted SNI gets ErrBypass