1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-07-12 04:54:15 +00:00
Xray-core/app
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
..
commander Chore: Generate *.pb.go files with protoc v5.28.2 2024-10-16 04:06:21 +00:00
dispatcher Sniffer: Fix potential infinite loop () 2025-05-16 12:04:54 +00:00
dns DNS Host: Removing code that was not being executed and should not be executed. () 2025-05-15 10:15:03 -04:00
log Chore: Fix some spelling errors () 2024-11-06 10:42:43 -05:00
metrics Metrics: Add direct listen () 2025-02-18 11:32:48 +00:00
observatory v25.2.18 2025-02-18 11:55:07 +00:00
policy Chore: Fix versions in some *.pb.go files 2024-11-11 03:27:30 +00:00
proxyman Update handler.go 2025-05-31 02:37:59 +09:00
reverse Chore: Generate *.pb.go files with protoc v5.28.2 2024-10-16 04:06:21 +00:00
router DNS: Fix some bugs; Refactors; Optimizations () 2025-04-29 08:39:57 +00:00
stats API: Fix data race in online ipList () 2025-03-20 11:12:36 +00:00
app.go v1.0.0 2020-11-25 19:01:53 +08:00