风扇滑翔翼
87ef07d5f4
Correctly propagate error in AuthenticationReader readBuffer
9 months ago
A1lo
a994bf8b04
chore: fix some errors detected by staticcheck ( #3089 )
...
* chore: fix some errors detected by staticcheck
* feat: remove `rand.Seed()` usage for possibly using "fastrand64" runtime to avoid locking
ref: https://pkg.go.dev/math/rand#Seed
9 months ago
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>
9 months ago
Iain Lau
3a99520370
Add PROXY Protocol support for freedom outbound
10 months ago
nobody
961cf9d3b1
Remove slices dependency. ( #2930 )
...
* Remove slices dependency.
* Fix nil pointer dereference bug.
---------
Co-authored-by: nobody <nobody@nowhere.mars>
11 months ago
Lars Lehtonen
2fc4b31fcf
common/singbridge: fix dropped context
11 months ago
nobody
44bb83033f
Add sub-command "-dump" to "run". ( #2854 )
...
* Add MarshalToJson().
* Add cmd arg -dump for printing out merged multiple json configs.
---------
Co-authored-by: nobody <nobody@nowhere.mars>
11 months ago
Lars Lehtonen
06734d6f08
common/ocsp: fix dropped error
12 months ago
yuhan6665
2fd765ea4c
Delay XUDP Basekey read
1 year ago
yuhan6665
d9fd3f8eb1
Freedom xdomain strategy ( #2719 )
...
* 统一 `domainStrategy` 行为.
* aliases NG.
* 化简.
* 调整.
* Let it crash.
* Update proto
---------
Co-authored-by: rui0572 <125641819+rui0572@users.noreply.github.com>
1 year ago
yuhan6665
d24a636c75
Move some log from stdout to ray log
1 year ago
yuhan6665
11b61b02c8
Refine environment var
...
Address some review comments
1 year ago
yuhan6665
4f05e0ac2b
Unify environment var readers
1 year ago
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
1 year ago
dyhkwong
b8bd243df5
Fix buffer.UDP destination override ( #2356 )
1 year ago
mengskysama
fce86aad33
fix(common): strmatcher match domain safety
1 year ago
hax0r31337
f67167bb3b
refactor(deps): replace github.com/golang/protobuf with google.golang.org/protobuf
1 year ago
cty123
b68a43f4fc
fix: correct the logic of converting SocksAddr into net.Destination.
1 year ago
cty123
7aeca33729
fix: revert previous change on IsValid() function; add validation in getUoTConnection();
1 year ago
cty123
2df418abf1
fix: Check if address is nil for IsValid() function.
1 year ago
RPRX
667279af57
Add "nonIPQuery" to DNS outbound ("drop" by default)
...
And fixed a memory leak
And regenerated *.pb.go
1 year ago
yuhan6665
9112cfd39c
Clean legacy vmess ( #2199 )
...
* Remove legacy Vmess
* validators
* protos
1 year ago
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."
1 year ago
Zeyu Chen
bfd5da2f00
fix: dns empty response
2 years ago
世界
18e5b0963f
Update dependencies
2 years ago
yichya QC
90d915ea05
feat: add tcp_user_timeout
...
```json
{"streamSettings":{"sockopt": {"tcpUserTimeout": 10000}}}
```
run `gofmt -w -s .` as well
2 years ago
Vigilans
039e5f2078
Correctly implement quic sniffer's frame parsing
2 years ago
RPRX
b4c1a56026
XUDP practice: MUST check the flag first & Add more comments
2 years ago
yuhan6665
9f8e9e8e64
Add xudp buffer test
2 years ago
RPRX
b33b0bc89d
Allow multiple XUDP in Mux when using XTLS Vision (server side)
2 years ago
RPRX
01b7e5e9be
XUDP Global ID should be empty if "cone" is disabled (client side)
2 years ago
RPRX
24a2be43ef
Replace "only" with "xudpConcurrency" in Mux config
2 years ago
yuhan6665
05d24d6827
Amend XUDP related logs
...
- Useful for debug XUDP improvements
- Move XUDP log in core log
- Freedom connection log show local port
2 years ago
RPRX
76b27a37cb
Update common/xudp/xudp.go and common/mux/server.go
2 years ago
RPRX
be23d5d3b7
XUDP protocol: Add Global ID & UoT Migration
...
The first UoT protocol that supports UoT Migration
Thank @yuhan6665 for testing
2 years ago
世界
55efac7236
Reformat code
2 years ago
RPRX
00c9576118
Use go:linkname in qtls_go118.go
...
Once and for all, whatever
2 years ago
RPRX
f176ec54ee
v1.7.3
2 years ago
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
2 years ago
Hellojack
717518cb5f
Refine the logic of security type AUTO ( #1509 )
2 years ago
RPRX
7b8ff01114
Make sure that 0 <= b.start <= b.end
...
Fixes https://github.com/XTLS/Xray-core/issues/1501
2 years ago
RPRX
ff5ce767df
Revert "add file soft link path resolve support ( #1482 )" ( #1495 )
...
This reverts commit eaf401eda9
.
2 years ago
Nanyu
eaf401eda9
add file soft link path resolve support ( #1482 )
...
* add file soft link path resolve
* add configuration file soft link path resolve support
2 years ago
renahita6
3e4e050313
Fixed a bug that mux.Session could not be properly closed when receiving an End status.
2 years ago
degfw
d3efd2d24f
fix: Replace "math/rand" with "crypto/rand" in padding generation( #2032 ) ( #1337 )
...
Co-authored-by: NaLan ZeYu <nalanzeyu@gmail.com>
2 years ago
yuhan6665
5e695327b1
Add XTLS RPRX's Vision ( #1235 )
...
* Add XTLS RPRX's Vision
* Add helpful warning when security is wrong
* Add XTLS padding (draft)
* Fix number of packet to filter
* Xtls padding version 1.0 and unpadding logic
2 years ago
yuhan6665
8117b66949
Generate all protos
2 years ago
yuhan6665
debd2e3ba8
Remove compatibility code
...
The minimum support go version is already 1.18
2 years ago
Mocking
4140bcd11a
Enhancement of "redirect" function, adding support for MacOS
...
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
"inbounds": [
{
"listen": "127.0.0.1",
"port": 1122,
"protocol": "dokodemo-door",
"tag": "dokodemo",
"settings": {
"network": "tcp",
"followRedirect": true,
"userLevel": 0
},
"streamSettings": {
"sockopt": {
"tproxy": "Redirect"
}
}
}
]
还原#1189 提交
2 years ago
S-Mocking
59602db02d
Add "tproxy" option ( #1189 )
...
* Add "tproxy" option
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
"inbounds": [
{
"listen": "127.0.0.1",
"port": 1122,
"protocol": "dokodemo-door",
"tag": "dokodemo",
"settings": {
"network": "tcp",
"followRedirect": true,
"userLevel": 0
},
"streamSettings": {
"sockopt": {
"tproxy": "pf"
}
}
}
]
* Add "tproxy" option
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
"inbounds": [
{
"listen": "127.0.0.1",
"port": 1122,
"protocol": "dokodemo-door",
"tag": "dokodemo",
"settings": {
"network": "tcp",
"followRedirect": true,
"userLevel": 0
},
"streamSettings": {
"sockopt": {
"tproxy": "pf"
}
}
}
]
* Add "tproxy" option
Added the function of "MacOS" FreeBSD firewall traffic forwarding and resolving destination address
example:
"inbounds": [
{
"listen": "127.0.0.1",
"port": 1122,
"protocol": "dokodemo-door",
"tag": "dokodemo",
"settings": {
"network": "tcp",
"followRedirect": true,
"userLevel": 0
},
"streamSettings": {
"sockopt": {
"tproxy": "pf"
}
}
}
]
Co-authored-by: Mocking <fanhaiwang0817@gmail.com>
2 years ago