1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 08:15:21 -05:00

Add return

This commit is contained in:
RPRX
2020-09-24 11:02:27 +00:00
committed by GitHub
parent 648d4180aa
commit 3072cdccf4

View File

@@ -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)