RPRX
f84b6f9537
Update handler.go
2025-06-06 01:53:57 +00:00
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
patterniha
bb0e561caf
Sniffer: Fix potential infinite loop ( #4726 )
...
Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
2025-05-16 12:04:54 +00:00
patterniha
882975ce5a
DNS Host: Removing code that was not being executed and should not be executed. ( #4721 )
...
* Removing a piece of code that was not being executed and should not be executed.
* Remove d.dns
---------
Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
2025-05-15 10:15:03 -04:00
patterniha
59aa5e1b88
DNS: temporary appending hosts results ( #4702 )
2025-05-06 18:11:08 -04:00
patterniha
54c6513fd4
DNS: Extend hosts
Abilities ( #4673 )
2025-04-30 04:32:52 +00:00
Aubrey Yang
5e6a5ae01d
Improve random IP compatibility: support IPv4, add srcip option, and sync client source IP via sendthrough ( #4671 )
2025-04-30 04:32:02 +00:00
patterniha
aa4134f4a6
DNS: Fix some bugs; Refactors; Optimizations ( #4659 )
2025-04-29 08:39:57 +00:00
j2rong4cn
d9ebb9b2dc
QUIC sniffer: Optimize the code ( #4655 )
...
Based on 2eed70e17d
2025-04-29 08:04:04 +00:00
j2rong4cn
58c48664e2
QUIC sniffer: Full support for handling multiple initial packets ( #4642 )
...
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
Co-authored-by: Vigilans <vigilans@foxmail.com>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: dyhkwong <50692134+dyhkwong@users.noreply.github.com>
2025-04-28 10:03:03 +00:00
peter zhang
922ae98a4a
DNS log: Optimize IP address display ( #4630 )
2025-04-23 03:10:20 +00:00
Cl-He-O
7a2f42f8d5
Fix issues related to android client ( #4616 )
...
* WireGuard: Fix tunnel not closed
* Dialer: Apply controllers in lc.Control
2025-04-14 11:08:26 -04:00
patterniha
1685c61e44
DNS: Use cache for NXDOMAIN (rcode 3 error) ( #4560 )
...
https://github.com/XTLS/Xray-core/pull/4558#issuecomment-2759007356
2025-03-29 14:29:48 +00:00
patterniha
5922caff89
DNS: Add expectedIPs
as an alias of expectIPs
( #4551 )
...
https://github.com/XTLS/Xray-core/discussions/1903#discussioncomment-5543921
2025-03-26 12:18:58 +00:00
Meo597
4afe2d0cff
DNS: Support returning upstream TTL to clients ( #4526 )
...
Closes https://github.com/XTLS/Xray-core/issues/4527
2025-03-24 13:33:56 +00:00
RPRX
607c2a6d31
DNS DoH: Use EDNS0 with 100-300 padding by default (body padding)
...
https://github.com/XTLS/Xray-core/pull/4516#issuecomment-2744093003
2025-03-21 20:13:09 +00:00
patterniha
1067171e6a
DNS: Add timeoutMs
for DnsServerObject ( #4523 )
2025-03-21 10:24:58 +00:00
风扇滑翔翼
86a225cda1
DNS: Retry with EDNS0 when response is truncated ( #4516 )
2025-03-21 08:58:51 +00:00
风扇滑翔翼
6f8e253dec
DNS: Add tag
for DnsServerObject ( #4515 )
...
Closes https://github.com/XTLS/Xray-core/issues/4505
2025-03-21 08:58:24 +00:00
patterniha
6a211a0bb9
DNS: Add allowUnexpectedIPs
for DnsServerObject ( #4497 )
...
Closes https://github.com/XTLS/Xray-core/issues/4424
2025-03-20 12:09:02 +00:00
风扇滑翔翼
335845a9b2
DNS: Ensure order for DNS server match ( #4510 )
...
Fixes https://github.com/XTLS/Xray-core/issues/4508
2025-03-20 11:21:21 +00:00
风扇滑翔翼
b70d0abebe
API: Fix data race in online ipList ( #4513 )
...
Fixes https://github.com/XTLS/Xray-core/issues/4512
2025-03-20 11:12:36 +00:00
RPRX
16eee1b89c
Mux server: Clone the session.Content attached on ctx as well
...
https://github.com/XTLS/Xray-core/pull/3908#issuecomment-2696911994
Fixes https://github.com/XTLS/Xray-core/pull/3904 for good
2025-03-04 11:01:03 +00:00
RPRX
e466b0497c
DNS DoH: Use Chrome's fingerprint & keepAlivePeriod, Add header padding by default
...
https://github.com/XTLS/Xray-core/discussions/4430#discussioncomment-12374292
2025-03-03 14:45:12 +00:00
lastrise
89792aee9d
Outbound: Add outbound sendThrough origin behavior ( #4349 )
...
* added support of sending through origin for outbounds
* added strings package import
* usage of net.SplitHostPort instead of manual splitting
---------
Co-authored-by: poly <poly@>
2025-02-20 15:15:59 -05:00
RPRX
52381a3c03
v25.2.18
...
Announcement of NFTs by Project X: https://github.com/XTLS/Xray-core/discussions/3633
Project X NFT: https://opensea.io/assets/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/1
XHTTP: Beyond REALITY: https://github.com/XTLS/Xray-core/discussions/4113
REALITY NFT: https://opensea.io/assets/ethereum/0x5ee362866001613093361eb8569d59c4141b76d1/2
2025-02-18 11:55:07 +00:00
风扇滑翔翼
4b01eb4398
Metrics: Add direct listen ( #4409 )
2025-02-18 11:32:48 +00:00
风扇滑翔翼
22c50a70c6
UDS: Make all remote addr 0.0.0.0 ( #4390 )
...
https://github.com/XTLS/Xray-core/pull/4389#issuecomment-2656360673
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
2025-02-13 14:01:33 +00:00
RPRX
613c63b165
DNS DoH h2c Remote: Add verifyPeerCertInNames
"fromMitm" support
...
https://github.com/XTLS/Xray-core/issues/4313#issuecomment-2645838663
2025-02-08 18:05:41 +00:00
Artur Melanchyk
ae327eb7e6
Chore: Make some Maps into real Sets ( #4362 )
2025-02-07 13:48:33 +00:00
Maxim Plotnikov
e893fa1828
API: Add user IPs and access times tracking ( #4360 )
2025-02-07 12:19:47 +00:00
RPRX
a7a83624c5
Upgrade quic-go to official v0.49.0
...
https://github.com/quic-go/quic-go/releases/tag/v0.49.0
https://github.com/quic-go/quic-go/pull/4749
https://github.com/quic-go/quic-go/pull/4798
2025-01-26 11:47:30 +00:00
风扇滑翔翼
3a7a78ff3a
UDS: Keep valid source addr ( #4325 )
...
Fixes https://github.com/XTLS/Xray-core/issues/4324
2025-01-26 11:08:36 +00:00
RPRX
2522cfd7be
DNS DoH: Add h2c Remote mode (with TLS serverNameToVerify
)
...
https://github.com/XTLS/Xray-core/issues/4313#issuecomment-2609339864
Applies https://github.com/refraction-networking/utls/pull/161
Closes https://github.com/XTLS/Xray-core/issues/4313
2025-01-25 10:51:44 +00:00
风扇滑翔翼
f4fd8b8fad
DNS: Implement queryStrategy for "localhost" ( #4303 )
...
Fixes https://github.com/XTLS/Xray-core/issues/4302
2025-01-19 07:39:54 +00:00
yuhan6665
42aea01fb5
Core: Add mutex to injection resolution ( #4206 )
...
* Revert "Add RequireFeaturesAsync() that works regardless order of app init"
* Add mutex to injection resolution
- Turns out we already support async DI resolution regardless of feature ordering
Previous code contain a race condition causing some resolution is lost
- Note that the new mutex cover s.pendingResolutions and s.features
but must not cover callbackResolution() due to deadlock
- Refactor some method names and simplify code
* Add OptionalFeatures injection
For example OptionalFeatures() is useful for fakedns module
2024-12-26 12:55:12 +00:00
maoxikun
868799ef04
DNS: Always use a DNS Message ID of 0 for DoH and DoQ ( #4193 )
...
Co-authored-by: dyhkwong <50692134+dyhkwong@users.noreply.github.com>
2024-12-22 09:19:09 +00:00
RPRX
53b04d560b
XHTTP client: Make H3 httptrace work on v2rayNG
...
Introduced in https://github.com/XTLS/Xray-core/pull/4150
2024-12-20 07:19:41 +00:00
RPRX
743435d6e6
Core: Fix startup error when dns
exists but fakedns
doesn't
...
Fixes https://github.com/XTLS/Xray-core/issues/4155
2024-12-12 06:56:05 +00:00
yuhan6665
0e2304c403
Core: Fix memory leaks with RequireFeatures() ( #4095 )
...
Fixes https://github.com/XTLS/Xray-core/issues/4054
Fixes https://github.com/XTLS/Xray-core/issues/3338
Fixes https://github.com/XTLS/Xray-core/issues/3221
2024-12-11 01:07:52 +00:00
RPRX
46d8d9ef02
XHTTP server: Forbid Mux.Cool except pure XUDP ( #4128 )
...
https://github.com/XTLS/Xray-core/discussions/4113#discussioncomment-11491701
2024-12-07 04:45:45 +00:00
zonescape
034a485afe
Chore: Refactor tests in app/router ( #4019 )
2024-11-24 22:53:31 -05:00
zonescape
44b1dd0e67
Test: Change address for DNS over QUIC tests ( #4002 )
...
dns.adguard.com can be blocked in some places
2024-11-11 14:43:57 -05:00
RPRX
480748403a
Chore: Fix versions in some *.pb.go files
...
47fad1fbfd
2024-11-11 03:27:30 +00:00
zonescape
83bab5dd90
Chore: Run gofmt ( #3990 )
2024-11-09 11:16:11 +00:00
zonescape
71cfea8aae
Chore: Fix some spelling errors ( #3976 )
2024-11-06 10:42:43 -05:00
风扇滑翔翼
057e6284b2
UDS: prevent crash when proxy udp ( #3967 )
...
* net: Prevent nil pointer err in NetAddr()
* Fix dsworker saddr problem
2024-11-04 10:39:04 -05:00
tcpdumppy
ccc4b7b2cf
Test: Fix incorrect output format ( #3968 )
2024-11-04 10:36:42 -05:00
Hossin Asaadi
2c72864935
API: Add user online stats ( #3637 )
...
* add statsUserOnline bool to policy
* add OnlineMap struct to stats
* apply UserOnline functionality to dispatcher
* add statsonline api command
* fix comments
* Update app/stats/online_map.go
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
* improve AddIP
* regenerate pb
---------
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
2024-11-03 08:44:15 -05:00
yuhan6665
85a1c33709
API: Add new Get Inbound User ( #3644 )
...
* Add GetInboundUser in proto
* Add get user logic for all existing inbounds
* Add inbounduser command
* Add option to get all users
* Fix shadowsocks2022 config
* Fix init users in shadowsocks2022
* Fix copy
* Add inbound user count command
This api costs much less than get inbound user, could be useful in some case
* Update from latest main
2024-11-03 00:25:23 -04:00