From 3072cdccf4dec36e3198db687e3a076c3ada01f7 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:02:27 +0000 Subject: [PATCH] Add return --- proxy/vless/encoding/addons.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/vless/encoding/addons.go b/proxy/vless/encoding/addons.go index 389511c9..dbaf4aca 100644 --- a/proxy/vless/encoding/addons.go +++ b/proxy/vless/encoding/addons.go @@ -18,7 +18,7 @@ func EncodeHeaderAddons(buffer *buf.Buffer, addons *Addons) error { case vless.XRO: if bytes, err := proto.Marshal(addons); err != nil { - newError("failed to marshal addons protobuf value").Base(err) + return newError("failed to marshal addons protobuf value").Base(err) } else { if err := buffer.WriteByte(byte(len(bytes))); err != nil { return newError("failed to write addons protobuf length").Base(err)