mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2026-08-18 15:03:28 +08:00
Merge pull request #52 from mhchia/patch-1
fix: get `remoteID` from pb message in plaintext
This commit is contained in:
@@ -163,7 +163,7 @@ func (ic *Conn) runHandshakeSync() error {
|
||||
return err
|
||||
}
|
||||
|
||||
remoteID, err := peer.IDFromPublicKey(remotePubkey)
|
||||
remoteID, err := peer.IDFromBytes(remoteMsg.Id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user