Get remoteID from pb message

This commit is contained in:
Kevin Mai-Husan Chia
2019-08-23 12:31:04 +08:00
committed by GitHub
parent f61804b905
commit cd824a7045

View File

@@ -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
}