ll11l1lIllIl1lll
c40fc44a34
SplitHTTP: Client supports HTTP/3 ( #3543 )
...
Closes https://github.com/XTLS/Xray-core/issues/3456
Co-authored-by: Fangliding <Fangliding.fshxy@outlook.com>
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
4 months ago
yuhan6665
02cd3b8c74
Fix SplitHTTP race condition when creating new sessions ( #3533 )
...
Co-authored-by: nobody <nobody@nowhere.mars>
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
4 months ago
风扇滑翔翼
a7e198e1e2
Fix WS reading X-Forwarded-For & Add tests ( #3546 )
...
Fixes https://github.com/XTLS/Xray-core/issues/3545
---------
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
4 months ago
MHSanaei
16de0937a8
Fix typos ( #3527 )
4 months ago
mmmray
c8f6ba9ff0
Add SplitHTTP Browser Dialer support ( #3484 )
4 months ago
风扇滑翔翼
308f0c64c3
Add custom Sockopt support ( #3517 )
...
* Add custom sockopt
* Add custom level
* Change field
* Sth left
5 months ago
yuhan6665
b8c0768b16
Properly parse HTTP host for verification
...
Also fix H2 transport to not verify if host is not defined
5 months ago
yuhan6665
4c51636788
Relax server HTTP host check
5 months ago
yuhan6665
60b2c349d2
Try to fix infinite conn read in tests
5 months ago
mmmray
c6a57b2cc1
Fix connection reuse in splithttp HTTP/1.1 ( #3485 )
5 months ago
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
5 months ago
RPRX
8320732743
SplitHTTP: ok -> ooooooooook (parser in client)
...
https://github.com/XTLS/Xray-core/pull/3479#issuecomment-2196370334
5 months ago
mmmray
c0f3bf66fd
Add new header to disable HTTP middle box buffer
...
Co-Authored-By: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
5 months ago
maskedeken
e4f9d03bef
splithttp Read() using blocking mode ( #3473 )
...
* blocking splithttp read
* Add testcase
* simplify conditions
---------
Co-authored-by: mmmray <142015632+mmmray@users.noreply.github.com>
5 months ago
mmmray
ee2000f6e1
splithttp: Add support for H2C and http/1.1 ALPN on server ( #3465 )
...
* Add H2C support to server
* update comment
* Make http1.1 ALPN work on SplitHTTP client
Users that encounter protocol version issues will likely try to set the
ALPN explicitly. In that case we should simply grant their wish, because
the intent is obvious.
5 months ago
mmmray
eb4f9429e6
Use ArrayBuffer in WS browser dialer binaryType ( #3468 )
...
On my machine, browserdialer speedtest gives 10 Mbit/s download. Now it
can do 300 Mbit/s.
5 months ago
mmmray
8fe976d7ee
Upgrade SplitHTTP Transport ( #3462 )
...
* move to paths instead of querystrings
* permit early data on serverside
* early data for the client, fix context cancellation
5 months ago
mmmray
c1a7602412
fix compatibility issues with go 1.21
5 months ago
mmmray
c10bd28731
Add SplitHTTP Transport ( #3412 )
5 months ago
风扇滑翔翼
3654c0d710
HTTPUpgrade send headers with specified capitalization ( #3430 )
...
* Fix HTTPUpgrade header capitalization
* Chore
* Remove excess host headers
Chore : change httpupgrade header "upgrade" to "Upgrade" #3435
6 months ago
mmmray
f8ec93dfdd
drain buffer correctly in httpupgrade ( #3428 )
...
* drain buffer correctly in httpupgrade
it seems the recently added httupgrade testsuite is causing timeouts on master
i have no evidence this is the real issue, but it feels to me that the
server could accidentally over-read, and then the encapsulated
connection will block forever trying to read data
let's test it in CI a couple of times, i don't have a way to reproduce
the issue
* correctly drain buffer, again
6 months ago
mmmray
980236f2b6
preserve exact header casing when using httpupgrade ( #3427 )
...
* preserve exact header casing when using httpupgrade
* fix capitalization of websocket
* oops, we dont need net/url either
* restore old codepath when there are no headers
6 months ago
风扇滑翔翼
be29cc39d7
Add httpupgrade test
6 months ago
风扇滑翔翼
df53afceae
Make ws_test uses random ports
6 months ago
AsenHu
459504300c
chore: Remove unnecessary `if` in httpupgrade ( #3413 )
6 months ago
isluckys
89074a14b6
Fix udp goroutine leak
...
v.conn.link.Reader is a pipe.Reader, doesn't implement Close(), it will fail assertion and cause the pipe to be left open
It can be fixed by using Interrupt()
6 months ago
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
6 months ago
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
6 months ago
mmmray
8ce2a0e245
Validate /websocket requests from browser dialer page ( #3295 )
...
Fixes https://github.com/XTLS/Xray-core/issues/3236
---------
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
7 months ago
RPRX
61800fcc66
Revert "nosni"
...
https://github.com/XTLS/Xray-core/pull/3214#issuecomment-2078502477
7 months ago
RPRX
080bd8241c
Fix https://github.com/XTLS/Xray-core/issues/3288
7 months ago
X-Oracle
c85a91bc29
fix [ log ]: small fix for better readability.
7 months ago
yuhan6665
32f0017449
Add error log for ws host and path check
7 months ago
guangwu
12f5b05aca
fix: close resp body
7 months ago
Allo
fbc56b88da
chore: remove the usage of some deprecated tls properties
7 months ago
风扇滑翔翼
021868afca
Fix HTTPUpgrade init
8 months ago
风扇滑翔翼
ec2224974d
Add "nosni" option to send empty SNI ( #3214 )
...
* Allow not to send SNI
* Allow reality not to send SNI
8 months ago
yuhan6665
7e3a8d3a04
Add separate host config for websocket
8 months ago
yuhan6665
e2302b421c
Update proto file for websocket and httpupgrade (breaking)
8 months ago
风扇滑翔翼
9a619f9e7c
Add support for HTTPupgrade custom headers
8 months ago
チセ
2cafb3ef89
Fix(httpupgrade): `X-Forwarded-For` header not read. ( #3172 )
8 months ago
yuhan6665
657c5c8570
Update HTTPUpgrade spelling and proto
8 months ago
风扇滑翔翼
bb48a2043d
Fix HTTPUpgrade transport register
8 months ago
RPRX
18b823b4a6
HTTPUpgrade 0-RTT ( #3152 )
...
* Add ed to enable HTTPUpgrade 0-RTT
https://github.com/XTLS/Xray-core/issues/3128#issuecomment-2002563369
* WebSocket hub.go MaxHeaderBytes: 4096 -> 8192
8 months ago
RPRX
5c41292836
Add ConnRF to make HTTPUpgrade 0-RTT
...
https://github.com/XTLS/Xray-core/issues/3128#issuecomment-1991809113
8 months ago
RPRX
d3a218f896
Fix https://github.com/XTLS/Xray-core/issues/3128
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
Eken Chan
173b03448f
transport: add httpupgrade
9 months ago
RPRX
7184a8165f
Add Authority to gRPC Transport ( #3076 )
...
Why couldn't you have Host, for the last three years?
9 months ago
yuhan6665
3778a367c8
Fix and simplify SockOpt in UDP
...
https://github.com/golang/go/issues/29277
9 months ago