mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-14 20:25:08 +02:00
Don't reset peer address on repeated resolves
This can lead to handshakes being ignored for an indefinite time.
This commit is contained in:
parent
d1b4837082
commit
a883af1652
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ void fastd_resolve_peer(fastd_context_t *ctx, fastd_peer_t *peer) {
|
|||
ret->hostname_len = hostname_len;
|
||||
memcpy(hostname, peer->config->hostname, hostname_len);
|
||||
|
||||
ret->addr = peer->address;
|
||||
|
||||
if (write(ctx->resolvewfd, buf, sizeof(buf)) < 0)
|
||||
pr_error_errno(ctx, "can't write resolve return");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue