Adding wrong addresses to DHT
semtexzv opened this issue · 1 comments
semtexzv commented
I believe there is a bug in in the handling of IdentifyEvent
The field observed_addr
in this field refers to local node, and not the peer.
https://docs.rs/libp2p/0.29.0/libp2p/identify/enum.IdentifyEvent.html
The code in https://github.com/ipfs-rust/ipfs-embed/blob/master/net/src/behaviour.rs#L159 is adding this address as the address of peer to kademlia.
semtexzv commented
Scratch that, found it .