summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-25 00:15:17 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-25 00:15:17 +0200
commit22a8e9ccb196df6de9a3c64518fd0e9fa0ee10fc (patch)
tree28793070b6651cc5870eadb5dd7598d6042aaf12 /src
parent13c13161fe37426fa7571ce0d59daa8bdf7a8314 (diff)
downloadfastd-22a8e9ccb196df6de9a3c64518fd0e9fa0ee10fc.tar
fastd-22a8e9ccb196df6de9a3c64518fd0e9fa0ee10fc.zip
Send handshakes after resolve even when the connection is already established for session refreshs to workv0.4-rc4
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/fastd.c b/src/fastd.c
index b35f70e..ab38d02 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -589,13 +589,10 @@ static void handle_resolv_returns(fastd_context *ctx) {
if (!fastd_peer_config_matches_dynamic(peer->config, &ctx->resolve_returns->constraints))
continue;
- if (fastd_peer_claim_address(ctx, peer, &ctx->resolve_returns->addr)) {
- if (!fastd_peer_is_established(peer))
- send_handshake(ctx, peer);
- }
- else {
+ if (fastd_peer_claim_address(ctx, peer, &ctx->resolve_returns->addr))
+ send_handshake(ctx, peer);
+ else
pr_warn(ctx, "hostname `%s' resolved to address %I which is used by a fixed peer", ctx->resolve_returns->hostname, ctx->resolve_returns->addr);
- }
break;
}