ginuerzh
b8d9c79f72
fix: handle empty host in relay AddrFeature ParseFrom for bind addresses
...
When rtcp listener calls Router.Bind with ":8000" (port-only address),
the relay AddrFeature.ParseFrom fails because net.SplitHostPort returns
an empty host. This leaves AType at default 0, causing AddrFeature.Encode
to return ErrBadAddrType.
Fix by normalizing port-only addresses to "0.0.0.0:<port>" in both tunnel
and relay connectors before ParseFrom. Also fix error check on
resp.WriteTo in the tunnel handler's handleBind to prevent silent
protocol desync.
2026-05-31 16:00:14 +08:00
ginuerzh
b597467858
add context for conn
2025-08-04 19:29:38 +08:00
ginuerzh
f71351f5ef
add interface xnet.SrcAddr/DstAddr
2025-08-03 10:15:53 +08:00
ginuerzh
355c72477a
add router handler & connector
2025-02-07 15:44:31 +08:00
ginuerzh
24547b4332
add ClientAddr for websocket conn
2024-10-16 20:46:45 +08:00
ginuerzh
8f994ab632
add handle options for sniffer
2024-10-10 22:49:56 +08:00
ginuerzh
e09ec08881
add sid for connector log
2024-09-20 18:20:57 +08:00
ginuerzh
3d2a7b7d3b
move x/internal/ctx to x/ctx
2024-01-30 18:19:39 +08:00
ginuerzh
3616a0d8a4
fix tunnel weight
2024-01-28 18:33:54 +08:00
ginuerzh
b5b39de62c
add weight for tunnel connector
2024-01-27 23:31:23 +08:00
ginuerzh
88cc6ff4d5
add traffic limiter for proxy handler
2023-11-18 18:28:09 +08:00
ginuerzh
f5a20fd0fc
remove nodelay option for tunnel
2023-11-16 20:36:17 +08:00
ginuerzh
a7166b8206
add sd for tunnel
2023-10-31 22:59:14 +08:00
ginuerzh
5b1183661f
set smux version to 1
2023-10-24 20:45:19 +08:00
ginuerzh
95ae6e3f57
generate random tunnel id
2023-10-20 23:54:45 +08:00
ginuerzh
cc4310106b
fix race condition
2023-10-19 23:47:47 +08:00
ginuerzh
0a565120df
default to smux version 2 for tunnel
2023-10-17 22:15:23 +08:00
ginuerzh
1759c95e78
add mux config
2023-10-17 21:55:07 +08:00
ginuerzh
5dfbb59f8a
update forward handler
2023-10-16 23:16:47 +08:00
ginuerzh
497915f465
add tunnel handler and connector
2023-10-15 15:39:25 +08:00