handshake.go | 2 +- diff --git a/handshake.go b/handshake.go index 60a546208fdfa58f2b4a63cb76b574f808dbddb2..0262e81c67f033e29169678de8c54dab4c94a2ec 100644 --- a/handshake.go +++ b/handshake.go @@ -51,7 +51,7 @@ return pex.GetBit(ExtensionBitFast) } func (pex *peerExtensionBytes) SetBit(bit ExtensionBit) { - pex[7-bit/8] |= 1 << bit % 8 + pex[7-bit/8] |= 1 << (bit % 8) } func (pex peerExtensionBytes) GetBit(bit ExtensionBit) bool {