summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-24 13:30:44 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-24 13:30:44 +0100
commita883af1652239f9428c24133de68fd9bbf7a123c (patch)
tree89f1f10fee92fcae9cc77f9424655bc2eece201a /src
parentd1b4837082a800978142a31d6b6d40e2e4814069 (diff)
downloadfastd-a883af1652239f9428c24133de68fd9bbf7a123c.tar
fastd-a883af1652239f9428c24133de68fd9bbf7a123c.zip
Don't reset peer address on repeated resolves
This can lead to handshakes being ignored for an indefinite time.
Diffstat (limited to 'src')
-rw-r--r--src/resolve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve.c b/src/resolve.c
index 02a986d..c01a88f 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -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");