mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-10 07:45:54 -04:00
Fix bug
This commit is contained in:
@@ -17,7 +17,8 @@ func EncodeHeaderAddons(buffer *buf.Buffer, addons *Addons) error {
|
||||
switch addons.Flow {
|
||||
case vless.XRO:
|
||||
|
||||
if bytes, err := proto.Marshal(addons); err != nil {
|
||||
bytes, err := proto.Marshal(addons)
|
||||
if err != nil {
|
||||
return newError("failed to marshal addons protobuf value").Base(err)
|
||||
}
|
||||
if err := buffer.WriteByte(byte(len(bytes))); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user