summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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");