mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-30 13:20:06 +08:00
Get remoteID
from pb message
This commit is contained in:
parent
f61804b905
commit
cd824a7045
@ -162,7 +162,7 @@ func (ic *Conn) runHandshakeSync() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
remoteID, err := peer.IDFromPublicKey(remotePubkey)
|
remoteID, err := peer.IDFromBytes(remoteMsg.Id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user