mirror of
https://github.com/fluencelabs/js-libp2p-secio
synced 2025-03-15 01:40:51 +00:00
disable peer id check
This commit is contained in:
parent
1dbcfa88b6
commit
20869992a2
@ -65,7 +65,7 @@ exports.identify = async (state, msg) => {
|
||||
// If we know who we are dialing to, double check
|
||||
if (state.id.remote) {
|
||||
if (state.id.remote.toString() !== remoteId.toString()) {
|
||||
throw new UnexpectedPeerError('Dialed to the wrong peer: IDs do not match!')
|
||||
//throw new UnexpectedPeerError('Dialed to the wrong peer: IDs do not match!')
|
||||
}
|
||||
} else {
|
||||
state.id.remote = remoteId
|
||||
|
Loading…
x
Reference in New Issue
Block a user