diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-03 19:02:27 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-03 19:02:27 +0200 |
commit | 320e76e0deb763f2d5cff8eed39d844619e46cc2 (patch) | |
tree | c2246a8c1b2f848f3d89ea298fa518ae96887747 /src/fastd.c | |
parent | c2e81f00dcf2e1132bcbbcdd1f488ae4e75dd521 (diff) | |
download | fastd-320e76e0deb763f2d5cff8eed39d844619e46cc2.tar fastd-320e76e0deb763f2d5cff8eed39d844619e46cc2.zip |
Keep track of peer dirs
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; } |