Xray-core/app/proxyman/outbound
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
..
handler.go Update handler.go 2025-05-31 02:37:59 +09:00
handler_test.go Add session context outbounds as slice (#3356) 2024-05-13 21:52:24 -04:00
outbound.go Remove legacy code (#3838) 2024-09-23 11:28:19 -04:00
uot.go Refactor log (#3446) 2024-06-29 14:32:57 -04:00