From f15998925daca38cb228de98024bb95f7d99123b Mon Sep 17 00:00:00 2001 From: James Crayne Date: Wed, 30 May 2018 03:32:50 +0000 Subject: comment out base nonce compare on repeat handshake --- src/Network/Tox/Crypto/Handlers.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Network/Tox/Crypto') diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index cd227a4d..86b5b138 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs @@ -556,8 +556,9 @@ updateCryptoSession sessions addr hp session = do dput XNetCrypto (" ncTheirDHTKey=" ++ show (ncTheirDHTKey session) ++ bool "{/=}" "{==}" (ncTheirDHTKey session == hpCookieRemoteDhtkey hp) ++ "hpCookieRemoteDhtkey=" ++ show (hpCookieRemoteDhtkey hp)) - when ( Just ncTheirBaseNonce0 /= hpTheirBaseNonce hp -- XXX: Do we really want to compare base nonce here? - || ncTheirDHTKey session /= hpCookieRemoteDhtkey hp + when ( -- Just ncTheirBaseNonce0 /= hpTheirBaseNonce hp -- XXX: Do we really want to compare base nonce here? + -- || + ncTheirDHTKey session /= hpCookieRemoteDhtkey hp ) $ freshCryptoSession sessions addr hp else do dput XNetCrypto "updateCryptoSession else clause" -- cgit v1.2.3