mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-14 12:25:07 +02:00
Send handshakes after resolve even when the connection is already established for session refreshs to work
This commit is contained in:
parent
13c13161fe
commit
22a8e9ccb1
1 changed files with 3 additions and 6 deletions
|
@ -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))
|
||||
if (fastd_peer_claim_address(ctx, peer, &ctx->resolve_returns->addr))
|
||||
send_handshake(ctx, peer);
|
||||
}
|
||||
else {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue