mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
feat: vmess zero encryption (#333)
This commit is contained in:
parent
e9ea658852
commit
1dae2c5636
5 changed files with 125 additions and 9 deletions
|
@ -111,6 +111,12 @@ func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer inte
|
|||
request.Option.Set(protocol.RequestOptionGlobalPadding)
|
||||
}
|
||||
|
||||
if request.Security == protocol.SecurityType_ZERO {
|
||||
request.Security = protocol.SecurityType_NONE
|
||||
request.Option.Clear(protocol.RequestOptionChunkStream)
|
||||
request.Option.Clear(protocol.RequestOptionChunkMasking)
|
||||
}
|
||||
|
||||
input := link.Reader
|
||||
output := link.Writer
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue