1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 06:55:25 -05:00

apply bitmask to other packages

This commit is contained in:
Darien Raymond
2017-10-21 21:04:24 +02:00
parent 8c6f73f30b
commit f1a15e92f5
8 changed files with 44 additions and 76 deletions

View File

@@ -12,6 +12,7 @@ import (
"v2ray.com/core/app/log"
"v2ray.com/core/common"
"v2ray.com/core/common/bitmask"
"v2ray.com/core/common/buf"
"v2ray.com/core/common/crypto"
"v2ray.com/core/common/dice"
@@ -203,7 +204,7 @@ func (c *ClientSession) DecodeResponseHeader(reader io.Reader) (*protocol.Respon
}
header := &protocol.ResponseHeader{
Option: protocol.ResponseOption(buffer[1]),
Option: bitmask.Byte(buffer[1]),
}
if buffer[2] != 0 {