This commit is contained in:
Igor Katson 2021-07-13 13:16:59 +01:00
parent 951f610cfd
commit 1cd6caee76
6 changed files with 31 additions and 18 deletions

View file

@ -143,9 +143,9 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
debug!(
"connected peer {}: {:?}",
self.addr,
try_decode_peer_id(h.peer_id)
try_decode_peer_id(Id20(h.peer_id))
);
if h.info_hash != self.info_hash {
if h.info_hash != self.info_hash.0 {
anyhow::bail!("info hash does not match");
}