From 20869992a2ea0dc9997a5d9819b46aefed78f7ed Mon Sep 17 00:00:00 2001 From: vms Date: Sun, 23 Feb 2020 19:51:57 +0300 Subject: [PATCH] disable peer id check --- src/handshake/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handshake/crypto.js b/src/handshake/crypto.js index 91cd16c..89b8ec6 100644 --- a/src/handshake/crypto.js +++ b/src/handshake/crypto.js @@ -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