From 25ea69fc3a67fdf309472e4e611d5ddd8b5d3e94 Mon Sep 17 00:00:00 2001 From: yuhan6665 <1588741+yuhan6665@users.noreply.github.com> Date: Fri, 3 Mar 2023 09:45:10 -0500 Subject: [PATCH] Fix Vision inserting multiple uuid headers This happen for stream inbound like http --- proxy/vless/encoding/encoding.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/vless/encoding/encoding.go b/proxy/vless/encoding/encoding.go index 20468fd0..c7edf486 100644 --- a/proxy/vless/encoding/encoding.go +++ b/proxy/vless/encoding/encoding.go @@ -552,6 +552,7 @@ func XtlsPadding(b *buf.Buffer, command byte, userUUID *[]byte, longPadding bool newbuffer := buf.New() if userUUID != nil { newbuffer.Write(*userUUID) + *userUUID = nil } newbuffer.Write([]byte{command, byte(contentLen >> 8), byte(contentLen), byte(paddingLen >> 8), byte(paddingLen)}) if b != nil {