]> git.meshlink.io Git - meshlink/commit
Always let the initiator send a REQ_KEY once a connection is activated.
authorGuus Sliepen <guus@meshlink.io>
Thu, 23 Jul 2020 22:04:38 +0000 (00:04 +0200)
committerGuus Sliepen <guus@meshlink.io>
Thu, 23 Jul 2020 22:04:38 +0000 (00:04 +0200)
commit61ab7adcdb4ac160e57ef7b22f56df9676b6381d
tree62388719812c6331cd9da93ebdc05da72bde045b
parent6ba5501ace0b03e1573e4ec2a3fee1491f64bfe2
Always let the initiator send a REQ_KEY once a connection is activated.

Before, the logic was to do this when the graph reported a bidirectional
edge. However, there was a possibility that if two nodes connect to each
other simultaneously, causing a second connection to be activated while the
first was also still active, which caused the REQ_KEY to not be sent.
src/graph.c
src/protocol_auth.c