summaryrefslogtreecommitdiffstats
path: root/src/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c
index 4f5ac0f..6db4b9f 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -25,6 +25,7 @@
#include "fastd.h"
+#include "poll.h"
#include <fcntl.h>
@@ -195,6 +196,8 @@ bool fastd_socket_handle_binds(fastd_context_t *ctx) {
continue;
}
+ fastd_poll_set_fd_sock(ctx, ctx->socks[i].fd, i);
+
fastd_peer_address_t bound_addr = *ctx->socks[i].bound_addr;
if (!ctx->socks[i].addr->addr.sa.sa_family)
bound_addr.sa.sa_family = AF_UNSPEC;