From 4b0aea1dca6e685395ed087587570447e368cd4f Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:22:12 +0000 Subject: [PATCH] Fix bug --- proxy/vless/encoding/addons.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/vless/encoding/addons.go b/proxy/vless/encoding/addons.go index 3b832c12..06f69298 100644 --- a/proxy/vless/encoding/addons.go +++ b/proxy/vless/encoding/addons.go @@ -17,7 +17,8 @@ func EncodeHeaderAddons(buffer *buf.Buffer, addons *Addons) error { switch addons.Flow { case vless.XRO: - if bytes, err := proto.Marshal(addons); err != nil { + bytes, err := proto.Marshal(addons) + if err != nil { return newError("failed to marshal addons protobuf value").Base(err) } if err := buffer.WriteByte(byte(len(bytes))); err != nil {