Meow
906d49a271
Direct/Freedom outbound: Prefer IPv4 for finalRules' "AsIs" ( #6075 )
...
https://github.com/XTLS/Xray-core/pull/6075#issuecomment-4391684629
https://github.com/XTLS/Xray-core/pull/6075#issuecomment-4392629645
https://github.com/XTLS/Xray-core/pull/6075#issuecomment-4395258425
2026-05-07 14:12:39 +00:00
Meow
958eb9ea8f
Direct/Freedom outbound: Add blockDelay to finalRules (30~90s by default) ( #6060 )
...
Document: https://xtls.github.io/config/outbounds/freedom.html#finalruleobject
https://github.com/XTLS/Xray-core/pull/6058#issuecomment-4363489838
https://github.com/XTLS/Xray-core/pull/6058#issuecomment-4363522836
https://github.com/XTLS/Xray-core/pull/6060#issuecomment-4363675060
https://github.com/XTLS/Xray-core/pull/6060#issuecomment-4364587508
2026-05-02 20:40:46 +00:00
Meow
4e87f59628
Direct/Freedom outbound: Add finalRules (matches network, port and ip, then action) with default safe policies ( #6027 )
...
Document: https://xtls.github.io/config/outbounds/freedom.html#finalruleobject
https://github.com/XTLS/Xray-core/pull/6027#issuecomment-4335790980
https://github.com/XTLS/Xray-core/pull/6027#issuecomment-4336309055
https://github.com/XTLS/Xray-core/pull/6027#issuecomment-4338269638
Closes https://github.com/XTLS/Xray-core/issues/6018#issuecomment-4329273637
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2026-05-02 01:58:43 +00:00
RPRX
cd4d0baacd
Xray-core: Mark "legacy reverse" as removed to avoid confusions
...
https://github.com/XTLS/Xray-core/issues/5973#issuecomment-4273582111
https://github.com/XTLS/Xray-core/pull/5947#issuecomment-4273415252
2026-04-25 23:03:19 +00:00
Meow
d52f15060b
Direct/Freedom outbound: Block UDP responses that are come from ipsBlocked as well ( #5952 )
...
https://github.com/XTLS/Xray-core/pull/5947#issuecomment-4258980670
https://github.com/XTLS/Xray-core/pull/5952#issuecomment-4259324234
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2026-04-17 22:56:27 +00:00
Meow
310b764811
Direct/Freedom outbound: Add ipsBlocked (supports IP, CIDR, "geoip:", "ext:") and apply a default safe policy ( #5947 )
...
https://github.com/XTLS/Xray-core/pull/5892#issuecomment-4254056911
---------
Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com >
2026-04-15 23:41:11 +00:00
RPRX
d14767d4f3
Chore: Generate *.pb.go files with protoc v6.33.5
...
Download https://github.com/protocolbuffers/protobuf/releases/tag/v33.5
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.11
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.6.0
(Xray-core/) go run ./infra/vprotogen
2026-02-03 09:34:02 +00:00
RPRX
e943de5300
proxy/proxy.go: IsRAWTransport() -> IsRAWTransportWithoutSecurity()
2025-09-02 18:15:08 +00:00
yuhan6665
2acd206821
Direct/Freedom outbound: Use proxy.IsRAWTransport(conn) ( #5074 )
2025-09-01 15:03:01 +00:00
patterniha
593ededd3e
Trojan-UoT & UDP-nameserver: Fix forgotten release buffer; UDP dispatcher: Simplified and optimized ( #5050 )
2025-08-29 14:31:46 +00:00
patterniha
6d1695a686
Some refines related to direct/freedom and targetStrategy; More intelligent "useIP"/"ForceIP", enhance "origin" functionality ( #5030 )
...
https://github.com/XTLS/Xray-core/pull/5009#issuecomment-3194264277
2025-08-20 01:19:13 +03:30
patterniha
cde6e33ec9
Freedom: Add maxSplit fragment option; Add applyTo noises option ( #4998 )
2025-08-07 23:56:09 +00:00
patterniha
10376f5b4d
Freedom UDP: Fix some cone uses like STUN,... when address is domain ( #4942 )
...
https://github.com/XTLS/Xray-core/issues/2962#issuecomment-3120472154
2025-07-26 01:59:15 +00:00
patterniha
050f596e8f
Freedom: Fix UDP reply mismatch-address ( #4816 )
2025-07-23 10:07:24 +00:00
风扇滑翔翼
3b47d0846e
Freedom: Cache UDP resolve result ( #4804 )
2025-07-23 10:02:27 +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
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
风扇滑翔翼
3e590a4eb1
Freedom: Don't use rawConn copy when using utls ( #4272 )
2025-01-12 14:10:39 -05:00
风扇滑翔翼
33186ca5e6
Freedom noises: Change legacy variable name ( #4238 )
...
Closes https://github.com/XTLS/Xray-core/issues/4237
2025-01-02 08:21:32 +00:00
GFW-knocker
0658c9545b
Freedom config: Fix noises delay ( #4233 )
...
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2025-01-01 11:49:08 +00:00
RPRX
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
Kobe Arthur Scofield
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
Kobe Arthur Scofield
57a41f3b4b
Config: Remove more legacy fields ( #3817 )
2024-09-19 01:05:59 +00:00
dragonbreath2000
363e86c585
UDP noises: Add base64 and multi-packet support ( #3794 )
...
https://github.com/XTLS/Xray-core/pull/3794#issuecomment-2351329251
---------
Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com >
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com >
2024-09-16 12:46:30 +00:00
mmmray
f1c439c2aa
Revert "Fix freedom PacketReader/PacketWriter type assertion ( #3734 )"
...
This reverts commit 815a959c96 .
2024-09-01 10:59:31 -05:00
dragonbreath2000
002d08bf83
UDP noise ( #3711 )
...
* added udp noise
* adding protobuf settings
* freedom json parser and clean up
* resolve confict
* fix and clean up
* use net.conn instead of packetconnwrapper
* avoid constructing SequentialWriter directly
---------
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com >
2024-08-28 17:10:11 -04:00
dyhkwong
815a959c96
Fix freedom PacketReader/PacketWriter type assertion ( #3734 )
2024-08-27 10:17:55 -04:00
mmmray
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
风扇滑翔翼
9e93c19161
Freedom: Combine fragmented tlshello if interval is 0 ( #3663 )
...
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
Co-authored-by: Ahmadreza Dorkhah <djahmadfire@gmail.com >
2024-08-10 05:06:00 +00:00
yuhan6665
4cb2a128db
Don't do raw/splice copy in case of MITM
2024-07-24 20:41:40 -04:00
yuhan6665
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
RPRX
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
yuhan6665
121eb7b4fc
Splice update timer to 8 hours for inbound timer
2024-05-19 23:56:42 -04:00
yuhan6665
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
yuhan6665
548646fb06
Fix an edge case with tls hello fragment
2024-04-04 02:50:34 -04:00
yuhan6665
657c5c8570
Update HTTPUpgrade spelling and proto
2024-03-20 13:08:43 -04:00
yuhan6665
fa5d7a255b
Least load balancer ( #2999 )
...
* v5: Health Check & LeastLoad Strategy (rebased from 2c5a71490368500a982018a74a6d519c7e121816)
Some changes will be necessary to integrate it into V2Ray
* Update proto
* parse duration conf with time.Parse()
* moving health ping to observatory as a standalone component
* moving health ping to observatory as a standalone component: auto generated file
* add initialization for health ping
* incorporate changes in router implementation
* support principle target output
* add v4 json support for BurstObservatory & fix balancer reference
* update API command
* remove cancelled API
* return zero length value when observer is not found
* remove duplicated targeted dispatch
* adjust test with updated structure
* bug fix for observer
* fix strategy selector
* fix strategy least load
* Fix ticker usage
ticker.Close does not close ticker.C
* feat: Replace default Health Ping URL to HTTPS (#1991 )
* fix selectLeastLoad() returns wrong number of nodes (#2083 )
* Test: fix leastload strategy unit test
* fix(router): panic caused by concurrent map read and write (#2678 )
* Clean up code
---------
Co-authored-by: Jebbs <qjebbs@gmail.com >
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com >
Co-authored-by: 世界 <i@sekai.icu >
Co-authored-by: Bernd Eichelberger <46166740+4-FLOSS-Free-Libre-Open-Source-Software@users.noreply.github.com >
Co-authored-by: 秋のかえで <autmaple@protonmail.com >
Co-authored-by: Rinka <kujourinka@gmail.com >
2024-02-17 22:51:37 -05:00
Iain Lau
3a99520370
Add PROXY Protocol support for freedom outbound
2024-02-05 10:08:51 -05:00
yuhan6665
d9fd3f8eb1
Freedom xdomain strategy ( #2719 )
...
* 统一 `domainStrategy` 行为.
* aliases NG.
* 化简.
* 调整.
* Let it crash.
* Update proto
---------
Co-authored-by: rui0572 <125641819+rui0572@users.noreply.github.com >
2023-11-12 16:27:39 -05:00
yuhan6665
999bdc58d3
Turn on freedom splice by default
2023-10-29 15:16:57 -04:00
yuhan6665
4f05e0ac2b
Unify environment var readers
2023-10-29 15:16:57 -04:00
yuhan6665
efd32b0fb2
Enable splice for freedom outbound (downlink only)
...
- Add outbound name
- Add outbound conn in ctx
- Refactor splice: it can be turn on from all inbounds and outbounds
- Refactor splice: Add splice copy to vless inbound
- Fix http error test
- Add freedom splice toggle via env var
- Populate outbound obj in context
- Use CanSpliceCopy to mark a connection
- Turn off splice by default
2023-09-07 14:17:39 -04:00
RPRX
f0f3b417f7
Refactor: Fragmentation
...
5f5ae37571
9122d0f056
2023-07-06 16:30:39 +00:00
rrouzbeh
9122d0f056
Add TLS Hello Fragmentation for freedom outbound ( #2131 )
...
* Replace TCP Segmentation with TLS Hello Fragmentation
* Update infra/conf/freedom.go
* Refine proxy/freedom/freedom.go
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2023-06-18 09:27:55 -04:00
yuhan6665
d11d72be6c
Update proto file and fix protoc version parsing
...
The new protoc cli return version v23.1,
so we parse the file version v4.23.1 without "4."
2023-06-11 13:36:06 -04:00
sambali9
5f5ae37571
Added tcp fragmentation for freedom outbound ( #2021 )
...
* Added tcp fragmentation for freedom outbound
* Added TCP_NODELAY to outbound sockopt
* Changed fragment parameters to accept ranges and changed strategy to use length
* Changed packetNumber to packets, supporting range.
* Refactored the freedom fragment logic
* Refine Write()
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com >
2023-05-22 02:59:58 +00:00
yuhan6665
05d24d6827
Amend XUDP related logs
...
- Useful for debug XUDP improvements
- Move XUDP log in core log
- Freedom connection log show local port
2023-04-09 13:29:39 -04:00
RPRX
be23d5d3b7
XUDP protocol: Add Global ID & UoT Migration
...
The first UoT protocol that supports UoT Migration
Thank @yuhan6665 for testing
2023-04-06 10:21:35 +00:00
RPRX
b70912799b
Generate *.pb.go files with protoc v3.21.12
...
https://github.com/protocolbuffers/protobuf/releases/tag/v21.12
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
go run ./infra/vprotogen
2023-01-30 04:35:30 +00:00
yuhan6665
8117b66949
Generate all protos
2022-10-10 13:17:32 -04:00