1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)