projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c26bb47
)
Proactively send our own key when we request another node's key.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 10 Jan 2015 22:52:23 +0000
(23:52 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 10 Jan 2015 22:52:23 +0000
(23:52 +0100)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index f219287a07d7534028d1c83c8e7cb0a50d7215c4..456b43d23b1a958848b0a9fb67518d1689d74860 100644
(file)
--- 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) {