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
世界
c4a307e84d
Refactor to stdlib error unwrap method
3 years ago
世界
398375d76f
Reformat code (quic sniffers)
3 years ago
世界
087f0d1240
Add shadowsocks-2022 inbound/outbound ( #1061 )
3 years ago
yuhan6665
3f64f3206c
Quic sniffer ( #1074 )
...
* Add quic sniffer
* Fix quic sniffer
* Add uTP sniffer
* rename buf pool membership status to unmanaged
* rename buf type adaptor into FromBytes
Co-authored-by: 世界 <i@sekai.icu>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
3 years ago
世界
f046feb9ca
Reformat code
3 years ago
Mustafa
42284a757c
chore fixed ( #921 )
...
* chore fixed
3 years ago
Machtergreifung
9ad26fa049
chore fixed ( #897 )
...
* chore fixed
3 years ago
yuhan6665
9ea1bf7c1d
Fix shadowsocks xchacha cipher nonce size
3 years ago
yuhan6665
dd9da23a59
Add statistics in conn testing
...
Occasional error is observed when we execute long test
Print time and memory for better troubleshooting in the future
Co-authored-by: Jebbs <qjebbs@gmail.com>
3 years ago
yuhan6665
e93da4bd02
Fix some tests and format code ( #830 )
...
* Increase some tls test timeout
* Fix TestUserValidator
* Change all tests to VMessAEAD
Old VMess MD5 tests will be rejected and fail in 2022
* Chore: auto format code
3 years ago
yuhan6665
d5a7901601
Unified drain support for vmess and shadowsocks ( #791 )
...
* Added test for no terminate signal
* unified drain support for vmess and shadowsockets
* drain: add generated file
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
3 years ago
Shelikhoo
ff35118af5
VMess AEAD based packet length
...
(cherry picked from commit 08221600082a79376bdc262f2ffec1a3129ae98d)
3 years ago
世界
5c366db847
Add observatory / latestPing balancing strategy
...
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
3 years ago
maskedeken
238bd5d050
Add xchacha20-ietf-poly1305 for Shadowsocks
3 years ago
yuhan6665
45dc97e2b6
Use shadowsocket's bloomring for shadowsocket's replay protection ( #764 )
...
* use shadowsocket's bloomring for shadowsocket's replay protection
* added shadowsockets iv check for tcp socket
* Rename to shadowsockets iv check
* shadowsocks iv check config file
* iv check should proceed after decryption
* use shadowsocket's bloomring for shadowsocket's replay protection
* Chore: format code (#842 )
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
3 years ago
世界
50e576081e
Add DispatchLink
3 years ago
世界
a3023e43ef
Add routeOnly sniffing option
3 years ago
yuhan6665
e286cdcaa8
Style: format code by gofumpt ( #761 )
3 years ago
yuhan6665
d77be80b40
Refinement: LRU ( #1142 ) ( #775 )
...
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
3 years ago
Arthur Morgan
500c6de359
adjust
3 years ago
世界
cd4631ce99
Merge dns ( #722 )
...
* DNS: add clientip for specific nameserver
* Refactoring: DNS App
* DNS: add DNS over QUIC support
* Feat: add disableCache option for DNS
* Feat: add queryStrategy option for DNS
* Feat: add disableFallback & skipFallback option for DNS
* Feat: DNS hosts support multiple addresses
* Feat: DNS transport over TCP
* DNS: fix typo & refine code
* DNS: refine code
* Add disableFallbackIfMatch dns option
* Feat: routing and freedom outbound ignore Fake DNS
Turn off fake DNS for request sent from Routing and Freedom outbound.
Fake DNS now only apply to DNS outbound.
This is important for Android, where VPN service take over all system DNS
traffic and pass it to core. "UseIp" option can be used in Freedom outbound
to avoid getting fake IP and fail connection.
* Fix test
* Fix dns return
* Fix local dns return empty
* Apply timeout to dns outbound
* Update app/dns/config.go
Co-authored-by: Loyalsoldier <10487845+loyalsoldier@users.noreply.github.com>
Co-authored-by: Ye Zhihao <vigilans@foxmail.com>
Co-authored-by: maskedeken <52683904+maskedeken@users.noreply.github.com>
Co-authored-by: V2Fly Team <51714622+vcptr@users.noreply.github.com>
Co-authored-by: CalmLong <37164399+calmlong@users.noreply.github.com>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: 秋のかえで <autmaple@protonmail.com>
Co-authored-by: 朱聖黎 <digglife@gmail.com>
Co-authored-by: rurirei <72071920+rurirei@users.noreply.github.com>
Co-authored-by: yuhan6665 <1588741+yuhan6665@users.noreply.github.com>
Co-authored-by: Arthur Morgan <4637240+badO1a5A90@users.noreply.github.com>
3 years ago
Arthur Morgan
bad397bf22
fix typo
3 years ago
yuhan6665
3554886ce1
vformat supports multi-core processing ( #757 )
...
* Feat: vformat supports multi-core processing (#996 )
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
3 years ago
KallyDev
4abf98c1be
Move from deprecated ioutil to os and io packages ( #744 )
3 years ago
Arthur Morgan
b0886027f5
Fix statistics error when not readV ( #730 )
3 years ago
hmol233
7033f7cf5f
Fix: protobuf file ( #724 )
3 years ago
Arthur Morgan
ffc2f7c4e2
Style: format code
3 years ago
Arthur Morgan
24b637cd5e
Fix: CounterConnection with ReadV/WriteV ( #720 )
...
Co-authored-by: JimhHan <50871214+JimhHan@users.noreply.github.com>
3 years ago
yuhan6665
8a5bf06925
Chore: refine errorgen ( #721 )
...
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
3 years ago
yuhan6665
42d158bd85
vprotogen refine ( #717 )
...
* Update all proto files with existing vprotogen
* Chore: remove protoc-gen-gofast
* Feat: vprotogen adds version detector to block generation code from old protobuf version
* Feat: vprotogen refine logic
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
3 years ago
Arthur Morgan
0403e6ddc3
Merge pull request #669 from AkinoKaede/fix-cannot-disable-readv
...
Fix cannot disable ReadV
3 years ago
秋のかえで
17cdeac57f
Fix: cannot disable ReadV
3 years ago
hmol233
e4bf620795
minor tweak
3 years ago
hmol233
3531b95d82
?
4 years ago
hmol233
b977899926
Check buffer before releasing
...
to avoid `extending out of bound` issue in some cases
4 years ago
秋のかえで
7b7084f825
Refactor: A faster DomainMatcher implementation ( #348 )
...
Co-authored-by: DarthVader <61409963+darsvador@users.noreply.github.com>
4 years ago
Jim Han
0470381fe2
Fix: gRPC multi accepting empty bytes ( #411 )
4 years ago
RPRX
a0a32ee00d
Add gRPC Transport support ( #356 )
...
Co-authored-by: JimhHan <50871214+JimhHan@users.noreply.github.com>
4 years ago
RPRX
3de5af0611
Fix https://github.com/XTLS/Xray-core/issues/350
4 years ago
yuhan6665
f50eff5ebb
Add Fake DNS support ( #309 )
...
Co-authored-by: Xiaokang Wang <xiaokangwang@outlook.com>
Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
Co-authored-by: kslr <kslrwang@gmail.com>
4 years ago
Jim Han
db32ce6fd9
Enhance DNS and Dialer ( #341 )
4 years ago
秋のかえで
1dae2c5636
feat: vmess zero encryption ( #333 )
4 years ago
Kid
8aabbeefe1
Add /opt to assets location ( #312 )
4 years ago
RPRX
8ca8a7126b
Add XUDP support by simply renaming vudp to xudp
...
https://t.me/projectXray/243505
4 years ago
RPRX
1174ff3090
Refactor: VLESS & VMess & Mux UDP FullCone NAT
...
https://t.me/projectXray/242770
4 years ago
Jim Han
4cd343f2d5
Fix tests ( #201 )
...
Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
4 years ago
RPRX
c880b916ee
Avoid panic in BytesTo func
4 years ago
Arthur Morgan
5aa053a65f
Convert domain names to lowercase before matching ( #195 )
...
Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
4 years ago
秋のかえで
0b4858d016
Feature: Exclude some domains in sniffing destOverride ( #151 )
...
Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
4 years ago
RPRX
822afb0cc8
Improve UUID generator
...
https://github.com/XTLS/Xray-core/issues/158
4 years ago
RPRX
40271c09a0
Support for VLESS & VMess UUID v5 mapping standard
...
https://github.com/XTLS/Xray-core/issues/158
4 years ago
RPRX
ee15cc253f
Improve configuration detector (cone or symmetric)
4 years ago
RPRX
310a938511
VLESS & VMess are not ready to accept FullCone yet
4 years ago
RPRX
13ad3fddf6
Refactor: *net.UDPAddr -> *net.Destination
...
https://t.me/projectXray/111998
4 years ago
RPRX
6bcac6cb10
Move common/net/connection.go into cnc folder
4 years ago
RPRX
a78db47571
Adjust OCSP Stapling
4 years ago
eMeab
3d7e86efba
Add OCSP Stapling for TLS & XTLS ( #92 )
4 years ago
Arthur Morgan
6f25191822
Changes from v2ray-core ( #93 )
4 years ago
RPRX
8f8f7dd66f
Refactor: Shadowsocks & Trojan UDP FullCone NAT
...
https://t.me/projectXray/95704
4 years ago
RPRX
f8faf3c8b8
Removal: confonly
4 years ago
RPRX
41beb4ec04
Add Timer to Inbound metadata struct
4 years ago
RPRX
5a43fa750d
Adjust trim package name strategy
4 years ago
Arthur Morgan
32e7cd80e8
Fix trim package name error ( #36 )
4 years ago
RPRX
16544c18ab
v1.1.0
4 years ago
RPRX
c7f7c08ead
v1.0.0
4 years ago