Skip to content

Commit

Permalink
Merge pull request #52 from mhchia/patch-1
Browse files Browse the repository at this point in the history
fix: get `remoteID` from pb message in plaintext
  • Loading branch information
Stebalien committed Jan 11, 2020
2 parents 1996269 + fa4a3a0 commit ca6e701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/sec/insecure/insecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ca6e701

Please sign in to comment.