aa4134f4a6
DNS: Fix some bugs; Refactors; Optimizations ( #4659 )
2025-04-29 08:39:57 +00:00
d9ebb9b2dc
QUIC sniffer: Optimize the code ( #4655 )
...
Based on 2eed70e17d
2025-04-29 08:04:04 +00:00
2eed70e17d
buffer.go: Ensure extended part by Extend() & Resize() are all-zero
...
https://github.com/XTLS/Xray-core/pull/4655#issuecomment-2837693439
2025-04-29 07:33:37 +00:00
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
681e943848
Chore: Optimize .gitignore ( #4564 )
2025-03-29 13:46:26 +00:00
2d3210e4b8
Env: Add XRAY_LOCATION_CERT
variable ( #4536 )
...
https://github.com/XTLS/Xray-core/issues/4531#issuecomment-2746155941
Fixes https://github.com/XTLS/Xray-core/issues/4531
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2025-03-24 13:02:35 +00:00
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
8cb63db6c0
XHTTP server: Set remoteAddr & localAddr correctly
...
Completes 22c50a70c6
2025-02-18 10:50:50 +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
925a985cc0
Commands: Use ".crt" & ".key" suffixes when generating TLS certificates
...
https://github.com/XTLS/Xray-core/issues/4313#issuecomment-2645844058
2025-02-08 18:29:54 +00:00
c6a31f457c
MITM: Allow using local received SNI in the outgoing serverName
& verifyPeerCertInNames
...
https://github.com/XTLS/Xray-core/issues/4348#issuecomment-2637370175
Local received SNI was sent by browser/app.
In freedom RAW's `tlsSettings`, set `"serverName": "fromMitm"` to forward it to the real website.
In freedom RAW's `tlsSettings`, set `"verifyPeerCertInNames": ["fromMitm"]` to use all possible names to verify the certificate.
2025-02-06 07:37:30 +00:00
9b7841178a
MITM: Allow forwarding local negotiated ALPN http/1.1 to the real website
...
https://github.com/XTLS/Xray-core/issues/4348#issuecomment-2633656408
https://github.com/XTLS/Xray-core/issues/4348#issuecomment-2633865039
Local negotiated ALPN http/1.1 was sent by browser/app or is written in dokodemo-door RAW's `tlsSettings`.
Set `"alpn": ["fromMitm"]` in freedom RAW's `tlsSettings` to forward it to the real website.
2025-02-04 15:10:08 +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
5679d717ee
Log: Add microseconds for all kinds of logs
...
https://github.com/XTLS/Xray-core/issues/4313#issuecomment-2613932895
2025-01-25 11:52:44 +00:00
66dd7808b6
Commands: Fix dumping merged config for XHTTP ( #4290 )
...
Fixes https://github.com/XTLS/Xray-core/issues/4287
2025-01-17 10:40:36 +00:00
c8b17ad18d
Build: Use patched newer Go version to build Windows 7 assets ( #4192 )
...
https://github.com/XTLS/go-win7
2025-01-01 08:06:35 +00:00
b287d6419b
chore: use errors.New to replace fmt.Errorf with no parameters ( #4204 )
...
Signed-off-by: RiceChuan <lc582041246@gmail.com >
2024-12-24 00:17:00 -05: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
a2b773135a
XHTTP, WS, HU: Forbid "host" in headers
, read serverName
instead ( #4142 )
...
WebSocket's config files should be updated ASAP.
2024-12-11 00:58:14 +00:00
6ba0dbafd7
Test: Delete temporary file afterwards ( #4028 )
2024-11-20 05:03:39 +00:00
1ffb8a92cd
Sniff: Prevent crash on QUIC sniffer panic ( #3978 )
...
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2024-11-11 04:20:54 +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
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
9f8bb47633
Fix: Apply mutex when visiting Attributes as well ( #3921 )
...
https://github.com/XTLS/Xray-core/pull/3921#issuecomment-2445689462
2024-10-30 02:26:43 +00: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
86257531ee
Routing: Add mutex for Attributes
temporarily ( #3908 )
...
https://github.com/XTLS/Xray-core/pull/3908#issuecomment-2412859858
2024-10-15 04:22:32 +00:00
c30f5d4796
Lint common/errors/feature_errors.go
2024-10-05 02:15:28 +00: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
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
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
3dd3bf94d4
Fix data leak between mux.cool connections ( #3718 )
...
Fix #116
2024-08-25 21:02:01 +02: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
11b04807b9
Log: Add "from" before source address
...
https://github.com/XTLS/Xray-core/pull/3682#issuecomment-2292600144
2024-08-16 02:18:39 +00:00
f0547bc04d
Commands: Use creflect.MarshalToJson() as output ( #3674 )
2024-08-12 05:59:23 -05:00
ac628a9427
API: Improve MarshalToJson() in common/reflect/marshal.go ( #3655 )
...
* Serialize enum to string in MarshalToJson().
* MarshalToJson() respect json tags.
* Add insertTypeInfo parameter to MarshalToJson().
* Omit empty string in MarshalToJson().
* Serialize PortList to string in MarshalToJson().
---------
Co-authored-by: nobody <nobody@nowhere.mars >
2024-08-08 10:35:46 -04:00
644901d1a5
Socks4a server: Check if the client sends an IP address as domain ( #3628 )
...
Fixes https://github.com/XTLS/Xray-core/issues/3622
2024-08-03 02:08:23 +00:00
4531a7e228
CertificateObject: Enable auto-reload for cacert & Add buildChain & Fixes ( #3607 )
2024-07-29 06:58:58 +00:00
59819e2a1b
Fix log severity ( #3535 )
2024-07-15 14:04:04 +02: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
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
03c20bf3b4
comments typo
...
Signed-off-by: oftenoccur <ezc5@sina.com >
2024-04-11 17:51:12 +08:00
657c5c8570
Update HTTPUpgrade spelling and proto
2024-03-20 13:08:43 -04:00