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
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
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
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
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
ae327eb7e6
Chore: Make some Maps into real Sets ( #4362 )
2025-02-07 13:48:33 +00:00
e893fa1828
API: Add user IPs and access times tracking ( #4360 )
2025-02-07 12:19:47 +00:00
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
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
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
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
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
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
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
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
034a485afe
Chore: Refactor tests in app/router ( #4019 )
2024-11-24 22:53:31 -05:00
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
480748403a
Chore: Fix versions in some *.pb.go files
...
47fad1fbfd
2024-11-11 03:27:30 +00:00
83bab5dd90
Chore: Run gofmt ( #3990 )
2024-11-09 11:16:11 +00:00
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
ccc4b7b2cf
Test: Fix incorrect output format ( #3968 )
2024-11-04 10:36:42 -05:00
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
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
47fad1fbfd
Chore: Generate *.pb.go files with protoc v5.28.2
...
Download https://github.com/protocolbuffers/protobuf/releases/tag/v28.2
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.35 .1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.5.1
(Xray-core/) go run ./infra/vprotogen
2024-10-16 04:06:21 +00:00
5164a82185
Routing: Fix regexp syntax support in UserMatcher ( #3900 )
2024-10-11 11:37:01 -04:00
7086d286be
Remove legacy code ( #3838 )
...
* Add feature migration notice
* Remove legacy code of transport processing
* Clear legacy proto field
* Fix missing
* Unify protocolname
* Test remove
* Supressor
* Weird code
* Remove errorgen related comments
2024-09-23 11:28:19 -04:00
57a41f3b4b
Config: Remove more legacy fields ( #3817 )
2024-09-19 01:05:59 +00:00
5f0642a671
Errors: Add PrintRemovedFeatureError & PrintDeprecatedFeatureWarning ( #3804 )
2024-09-15 04:55:54 +00:00
d7c5a0fc5f
Fix int overflow on x32 processors causing panic ( #3810 )
...
During the roll, "duration" is converted to int, causing overflow on x32 processors. The value may be very small or negative, causing a panic in rand.Intn.
2024-09-14 23:47:16 -04:00
781aaee21f
QUIC sniffer: handle multiple initial packets ( #3802 )
...
* QUIC sniffer: handle multiple initial packets
Basically copied from Vigilans/v2ray-core@8f33db0
Co-Authored-By: Vigilans <vigilans@foxmail.com >
* Remove unnecessary file
---------
Co-authored-by: Vigilans <vigilans@foxmail.com >
2024-09-13 13:32:43 -04:00
7970f240de
Log: show the matching rule tag ( #3809 )
2024-09-13 13:05:19 -04:00
88ae774cce
Sniff: Routing “attrs” support non http inbound ( #3808 )
...
* Sniff: Support attrs route in non http inbound
* Add capability to sniff method and path
* Fix test
* Skip HTTP inbound PlainHTTP mode
* Fix test
again
2024-09-13 12:26:36 -04:00
3a8c5f38e8
Routing: Add regexp syntax support to UserMatcher ( #3799 )
2024-09-12 10:48:41 -04:00
1b607ff874
DNS: Do not hit cache if encounted err ( #3784 )
2024-09-12 10:34:45 -04:00
a247997e38
Log: Add MaskAddress option to hide IP addresses ( #3783 )
...
* Log: Add maskAddress option
* Correct IPv6 subnet
2024-09-11 10:45:47 -04:00
f04cb0b288
Config: Remove some legacy fields from V2Ray 3.x era ( #3776 )
...
https://github.com/XTLS/Xray-core/pull/3776#issue-2512316726
2024-09-09 06:03:21 +00:00
8674ed5a0d
Support DNS queryStrategy config for UDP NameServer ( #3728 )
2024-08-27 10:19:33 -04:00
2be03c56cb
Pin protobuf packages ( #3715 )
...
* Pin protobuf packages
It happened in the past that I ran with the wrong protobuf version
installed locally, and apparently there is even still some file wrong in
splithttp. Fix this issue once and for all.
* bump protobuf packages
* Revert "bump protobuf packages"
This reverts commit 7a3509346a
.
* Revert "Revert "bump protobuf packages""
This reverts commit bb79707d15
.
* fix deprecated grpc usage
2024-08-22 10:18:36 -04:00
790f908f0b
chore: fix some comment typos ( #3716 )
...
Signed-off-by: curlwget <curlwget@icloud.com >
2024-08-22 17:32:38 +08:00
16de0937a8
Fix typos ( #3527 )
2024-07-12 00:20:06 +02:00
079d0bd8a9
Refactor log ( #3446 )
...
* Refactor log
* Add new log methods
* Fix logger test
* Change all logging code
* Clean up pathObj
* Rebase to latest main
* Remove invoking method name after the dot
2024-06-29 14:32:57 -04:00
ae97821e40
Add regex support for domainsExcluded ( #3449 )
...
* Add regx support for domainsExcluded
* format
2024-06-16 10:51:52 -04:00
0a3c449cdf
Inbound worker should fill context outbounds info
...
https://github.com/XTLS/Xray-core/issues/3388
2024-05-26 12:25:25 -04:00
ca07a705dc
Generate *.pb.go files with protoc v5.27.0
...
Download https://github.com/protocolbuffers/protobuf/releases/tag/v27.0
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34 .1
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
(Xray-core/) go run ./infra/vprotogen
2024-05-26 03:20:53 +00:00
017f53b5fc
Add session context outbounds as slice ( #3356 )
...
* Add session context outbounds as slice
slice is needed for dialer proxy where two outbounds work on top of each other
There are two sets of target addr for example
It also enable Xtls to correctly do splice copy by checking both outbounds are ready to do direct copy
* Fill outbound tag info
* Splice now checks capalibility from all outbounds
* Fix unit tests
2024-05-13 21:52:24 -04:00