summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-19 05:28:20 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-19 05:28:20 +0200
commitc4955de2ec0ced35b7a9dd6fee6b2f500dd225c9 (patch)
tree4824b81adf972f54ba96028962f8b85e96532001 /src/fastd.c
parentcaaba5ea19846aadacde67649f6d8de472dfcbac (diff)
downloadfastd-c4955de2ec0ced35b7a9dd6fee6b2f500dd225c9.tar
fastd-c4955de2ec0ced35b7a9dd6fee6b2f500dd225c9.zip
Don't re-resolve dynamic-floating peers on key refresh
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 457a488..80476b7 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -423,7 +423,7 @@ static void handle_tasks(fastd_context *ctx) {
while ((task = fastd_task_get(ctx)) != NULL) {
switch (task->type) {
case TASK_HANDSHAKE:
- if (fastd_peer_is_dynamic(task->peer))
+ if (fastd_peer_is_dynamic(task->peer) && !(fastd_peer_is_floating(task->peer) && fastd_peer_is_established(task->peer)))
fastd_resolve_peer(ctx, task->peer);
else
send_handshake(ctx, task->peer);