mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-01-15 02:30:05 +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
|
||||
}
|
||||
|
||||
remoteID, err := peer.IDFromPublicKey(remotePubkey)
|
||||
remoteID, err := peer.IDFromBytes(remoteMsg.Id)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user