mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-26 14:49:20 +02:00
Fix Vision inserting multiple uuid headers
This happen for stream inbound like http
This commit is contained in:
parent
a4790133d2
commit
25ea69fc3a
|
@ -552,6 +552,7 @@ func XtlsPadding(b *buf.Buffer, command byte, userUUID *[]byte, longPadding bool
|
||||||
newbuffer := buf.New()
|
newbuffer := buf.New()
|
||||||
if userUUID != nil {
|
if userUUID != nil {
|
||||||
newbuffer.Write(*userUUID)
|
newbuffer.Write(*userUUID)
|
||||||
|
*userUUID = nil
|
||||||
}
|
}
|
||||||
newbuffer.Write([]byte{command, byte(contentLen >> 8), byte(contentLen), byte(paddingLen >> 8), byte(paddingLen)})
|
newbuffer.Write([]byte{command, byte(contentLen >> 8), byte(contentLen), byte(paddingLen >> 8), byte(paddingLen)})
|
||||||
if b != nil {
|
if b != nil {
|
||||||
|
|
Loading…
Reference in New Issue