Browse Source

Fix bug

pull/2744/head
RPRX 4 years ago committed by GitHub
parent
commit
4b0aea1dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      proxy/vless/encoding/addons.go

3
proxy/vless/encoding/addons.go

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

Loading…
Cancel
Save