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
ginuerzh
a1fddedcc3
fix(handler/relay): remove remaining Chinese comments missed in conversion
...
Clean up 12 inline comments across bind.go, conn.go, connect.go,
entrypoint.go, handler.go that were still in Chinese.
2026-06-03 23:09:04 +08:00
ginuerzh
d5fd62aa47
docs(handler/relay): convert all comments to English
...
Translate all Chinese comments in the relay handler package to English:
handler.go, connect.go, bind.go, forward.go, conn.go, entrypoint.go,
observe.go, metadata.go. All inline and doc comments are now in English.
Also set a persistent preference: all future code comments must be
written in English only.
2026-06-03 23:05:08 +08:00
ginuerzh
c7d16962ec
add service option for plugin
2025-08-29 23:36:31 +08:00
ginuerzh
52289bea6c
add network param for sniffing
2025-08-13 21:25:35 +08:00
ginuerzh
b597467858
add context for conn
2025-08-04 19:29:38 +08:00
ginuerzh
208d18125c
replace xnet.Transport by xnet.Pipe
2025-07-28 20:52:15 +08:00
ginuerzh
d9a2f44a78
add src field for logger and recorder
2025-07-02 21:35:02 +08:00
ginuerzh
d610e2dc01
add traffic limiter for relay bind
2025-02-18 17:37:13 +08:00
ginuerzh
6b932e35bf
sniffing websocket frame
2024-10-19 19:36:06 +08:00
ginuerzh
a0cbee8817
use http.transport for non-connect http tunnel
2024-10-17 21:57:20 +08:00
ginuerzh
7e51404ae5
fix handler sniffing
2024-10-16 23:01:12 +08:00
ginuerzh
8f994ab632
add handle options for sniffer
2024-10-10 22:49:56 +08:00
ginuerzh
c42a44abb6
add sniffer utility
2024-10-02 22:51:23 +08:00
ginuerzh
3c8add4b82
add traffic sniffing for handler
2024-09-27 15:55:28 +08:00
ginuerzh
e22aa91571
add route for recorder
2024-09-24 20:20:15 +08:00
ginuerzh
69455ace9d
add handler recorder
2024-09-14 23:21:25 +08:00
ginuerzh
31c482c649
add scope param for traffic limiter
2024-08-31 09:30:04 +08:00
ginuerzh
c1d0887a9b
add port range support for service
2024-07-08 22:38:21 +08:00
ginuerzh
22537ff0d2
mv observer/stats to core
2024-07-04 23:05:35 +08:00
ginuerzh
3d2a7b7d3b
move x/internal/ctx to x/ctx
2024-01-30 18:19:39 +08:00
ginuerzh
c959fc2f73
add observer
2024-01-03 20:55:06 +08:00
ginuerzh
88cc6ff4d5
add traffic limiter for proxy handler
2023-11-18 18:28:09 +08:00
ginuerzh
9584bdbf4c
rm tunnel from relay
2023-11-14 22:35:46 +08:00
ginuerzh
5dfbb59f8a
update forward handler
2023-10-16 23:16:47 +08:00
ginuerzh
5ab729b166
fix serial
2023-10-15 23:55:52 +08:00
ginuerzh
497915f465
add tunnel handler and connector
2023-10-15 15:39:25 +08:00
ginuerzh
5488076801
add recorder for relay tunnel endpoint
2023-10-14 21:06:03 +08:00
ginuerzh
6a36ebcc9f
add proxy protocol support for relay tunnel and rtcp
2023-10-08 19:49:03 +08:00
ginuerzh
836cf6eade
add network for bypass
2023-09-30 17:51:55 +08:00
ginuerzh
f2ff1aa45a
add unix domain socket
2023-09-16 23:14:12 +08:00
ginuerzh
92db078642
add network feature for relay
2023-09-16 21:47:40 +08:00
ginuerzh
46db8480fa
add timeout for sniffing
2023-05-21 15:47:51 +08:00
ginuerzh
32c8188351
add plugin system
2023-04-18 20:52:56 +08:00
ginuerzh
b8027864a3
relay: fix routing for http traffic from entrypoint
2023-02-12 20:42:46 +08:00
ginuerzh
6f9f5ce6ab
relay: add direct routing for tunnel
2023-02-06 21:16:56 +08:00
ginuerzh
e2d5d50b4b
relay: use service for rtcp bind handler
2023-02-04 18:38:21 +08:00
ginuerzh
416405b1f0
add UDP support for reverse proxy tunnel
2023-02-02 19:18:10 +08:00
ginuerzh
1c6bc9283e
forward non-HTTP traffic based on host
2023-01-30 21:09:21 +08:00
ginuerzh
24037aba7b
relay: added private tunnel
2023-01-29 11:55:26 +08:00
ginuerzh
a1255e52d8
fix proxy protocol
2022-09-28 11:47:56 +08:00
ginuerzh
f3f3acd4e1
more fine-grained log level
2022-08-18 11:34:57 +08:00
ginuerzh
d6f8ec5116
add file and redis loader
2022-04-11 00:03:04 +08:00
ginuerzh
1444ebc1ee
add metrics
2022-04-05 17:56:36 +08:00
ginuerzh
36947bcbd9
fix imports
2022-03-16 20:06:34 +08:00
ginuerzh
9397cb5351
initial commit
2022-03-14 20:27:14 +08:00