projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Have tincctl act as a shell when no command is given.
[tinc]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
506b6df
..
9da552e
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-226,6
+226,9
@@
static void check_reachability(void) {
n->name, n->hostname);
}
n->name, n->hostname);
}
+ if(experimental && OPTION_VERSION(n->options) >= 2)
+ n->status.sptps = true;
+
/* TODO: only clear status.validkey if node is unreachable? */
n->status.validkey = false;
/* TODO: only clear status.validkey if node is unreachable? */
n->status.validkey = false;
@@
-266,7
+269,7
@@
static void check_reachability(void) {
if(!n->status.reachable) {
update_node_udp(n, NULL);
} else if(n->connection) {
if(!n->status.reachable) {
update_node_udp(n, NULL);
} else if(n->connection) {
- if(
experimental && OPTION_VERSION(n->options) >= 2
) {
+ if(
n->status.sptps
) {
if(n->connection->outgoing)
send_req_key(n);
} else {
if(n->connection->outgoing)
send_req_key(n);
} else {