diff options
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fastd.c b/src/fastd.c index f75bc87..bd1482f 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -187,7 +187,7 @@ static void init_sockets(void) { fastd_bind_address_t *addr = conf.bind_addrs; for (i = 0; i < conf.n_bind_addrs; i++) { if (get_bind_port(addr)) { - ctx.socks[i] = (fastd_socket_t){ .fd = FASTD_POLL_FD(POLL_TYPE_SOCKET, -2), .addr = addr }; + ctx.socks[i] = (fastd_socket_t){ .fd = FASTD_POLL_FD(POLL_TYPE_SOCKET, -1), .addr = addr }; if (addr == conf.bind_addr_default_v4) ctx.sock_default_v4 = &ctx.socks[i]; @@ -545,8 +545,7 @@ static inline void init(int argc, char *argv[]) { fastd_status_init(); fastd_async_init(); - if (!fastd_socket_handle_binds()) - exit_error("unable to bind default socket"); + fastd_socket_bind_all(); on_pre_up(); |