Xray-core/app/proxyman
Aubrey Yang 4894154a5e
Update handler.go
fix(proxy/freedom): prevent crash when passthrough is "origin" or "srcip"

In certain routing scenarios, outbound detour tags like "origin" or "srcip" may be assigned 
to freedom handlers without proper initialization, causing nil pointer dereference during Dial().

This patch adds guard checks to ensure the outbound handler is valid before dialing, and improves 
fallback logic for local address passthrough (e.g., 127.0.0.1) to avoid kernel crashes.

Also ensures `sendThrough` behavior gracefully degrades if loopback or empty DNS response is encountered.
2025-05-31 02:37:59 +09:00
..
command Core: Add mutex to injection resolution (#4206) 2024-12-26 12:55:12 +00:00
inbound Mux server: Clone the session.Content attached on ctx as well 2025-03-04 11:01:03 +00:00
outbound Update handler.go 2025-05-31 02:37:59 +09:00
config.go Config: Remove some legacy fields from V2Ray 3.x era (#3776) 2024-09-09 06:03:21 +00:00
config.pb.go Chore: Generate *.pb.go files with protoc v5.28.2 2024-10-16 04:06:21 +00:00
config.proto Config: Remove some legacy fields from V2Ray 3.x era (#3776) 2024-09-09 06:03:21 +00:00