diff options
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c index 939c651..3185186 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -81,10 +81,10 @@ static void init_socket(fastd_context *ctx) { struct sockaddr_in6 addr_in6 = ctx->conf->bind_addr_in6; if (addr_in.sin_family == AF_UNSPEC && addr_in6.sin6_family == AF_UNSPEC) { - if (ctx->conf->n_floating || ctx->conf->n_v4) + if (ctx->conf->n_floating || ctx->conf->peer_dirs || ctx->conf->n_v4) addr_in.sin_family = AF_INET; - if (ctx->conf->n_floating || ctx->conf->n_v6) + if (ctx->conf->n_floating || ctx->conf->peer_dirs || ctx->conf->n_v6) addr_in6.sin6_family = AF_INET6; } |