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:
parent
648d4180aa
commit
3072cdccf4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user