projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Proactively send our own key when we request another node's key.
[tinc]
/
src
/
net_packet.c
diff --git
a/src/net_packet.c
b/src/net_packet.c
index
f219287
..
456b43d
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) {