the reserved bits are only 8 bytes
This commit is contained in:
parent
63a2522014
commit
2a9605f9db
|
@ -370,7 +370,7 @@ private:
|
|||
// the peer indicated that it supports the
|
||||
// extension protocol
|
||||
bool m_supports_extensions;
|
||||
char m_reserved_bits[20];
|
||||
char m_reserved_bits[8];
|
||||
#endif
|
||||
bool m_supports_dht_port;
|
||||
bool m_supports_fast;
|
||||
|
|
|
@ -2463,7 +2463,7 @@ namespace libtorrent
|
|||
#endif
|
||||
|
||||
#ifndef DISABLE_EXTENSIONS
|
||||
std::memcpy(m_reserved_bits, recv_buffer.begin, 20);
|
||||
std::memcpy(m_reserved_bits, recv_buffer.begin, 8);
|
||||
if ((recv_buffer[5] & 0x10))
|
||||
m_supports_extensions = true;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue