From: Guus Sliepen Date: Sat, 10 Jan 2015 22:52:23 +0000 (+0100) Subject: Proactively send our own key when we request another node's key. X-Git-Tag: release-1.1pre12~221 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3801cb54311da2c30cbe27cd66559a2ea5daa91;p=oweals%2Ftinc.git Proactively send our own key when we request another node's key. --- diff --git a/src/net_packet.c b/src/net_packet.c index f219287..456b43d 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -1111,6 +1111,11 @@ static void try_tx_sptps(node_t *n) { } static void try_tx_legacy(node_t *n) { + /* Does he have our key? If not, send one. */ + + if(!n->status.validkey_in) + send_ans_key(n); + /* Check if we already have a key, or request one. */ if(!n->status.validkey) {