mirror of https://github.com/dswd/vpncloud.git
Setting reserved fields to 0
This commit is contained in:
parent
3e2fec3216
commit
83d8bcfc1a
|
@ -39,6 +39,8 @@ impl TopHeader {
|
|||
pub fn write_to(&self, data: &mut [u8]) -> usize {
|
||||
data[0..4].copy_from_slice(&self.magic);
|
||||
data[4] = self.crypto_method;
|
||||
data[5] = 0;
|
||||
data[6] = 0;
|
||||
data[7] = self.msgtype;
|
||||
TopHeader::size()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue