Browse Source

Fix Vision inserting multiple uuid headers

This happen for stream inbound like http
yuhan6665 2 years ago
parent
commit
25ea69fc3a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      proxy/vless/encoding/encoding.go

+ 1 - 0
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 {