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://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=f3801cb54311da2c30cbe27cd66559a2ea5daa91 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 f219287a..456b43d2 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) {