Files
x/internal/util
ginuerzh a32ffd5608 fix(sniffing): pass bypass option to sniffer HandleHTTP/HandleTLS calls
When sniffing is enabled, the sniffer extracts the real domain from HTTP
Host header or TLS SNI and checks bypass rules against it. However, most
handlers were not passing WithBypass(...) to the sniffer, so the sniffer
internal bypass check was always skipped.

Additionally, the TLS-to-HTTP fallback paths in internal util sniffer
and forwarder also omitted bypass when constructing options for the
recursive HandleHTTP call after decrypting TLS.

Add WithBypass to all sniffer call sites that were missing it across
handlers (http, relay, socks4, socks5, ss, sshd, unix) and internal
TLS fallback paths.

Also fix import ordering in handler/http/connect.go.

Fixes go-gost/gost#874
2026-06-23 20:54:26 +08:00
..
2023-10-19 23:47:47 +08:00
2022-04-13 21:30:30 +08:00
2025-08-04 19:29:38 +08:00
2022-03-14 20:27:14 +08:00
2023-10-15 23:55:52 +08:00
2022-03-14 20:27:14 +08:00
2025-07-26 16:17:04 +08:00
2025-02-25 20:39:33 +08:00
2025-08-04 19:29:38 +08:00
2025-08-03 10:15:53 +08:00