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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user