diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-03 09:56:44 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-03 09:56:44 +0200 |
commit | c2e81f00dcf2e1132bcbbcdd1f488ae4e75dd521 (patch) | |
tree | 281161da82078434c99ed411da55c6d7d415c6c6 /src/config.c | |
parent | 171dd6a58b89a5a7cdb55711515bec532a8f1bc6 (diff) | |
download | fastd-c2e81f00dcf2e1132bcbbcdd1f488ae4e75dd521.tar fastd-c2e81f00dcf2e1132bcbbcdd1f488ae4e75dd521.zip |
Don't set bind sockaddr in config if none is configured
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/config.c b/src/config.c index 5fa1591..b745251 100644 --- a/src/config.c +++ b/src/config.c @@ -491,19 +491,6 @@ void fastd_configure(fastd_context *ctx, fastd_config *conf, int argc, char *con } } - if (conf->n_floating && conf->bind_addr_in.sin_family == AF_UNSPEC - && conf->bind_addr_in6.sin6_family == AF_UNSPEC) { - conf->bind_addr_in.sin_family = AF_INET; - conf->bind_addr_in6.sin6_family = AF_INET6; - } - else { - if (conf->n_v4) - conf->bind_addr_in.sin_family = AF_INET; - - if (conf->n_v6) - conf->bind_addr_in6.sin6_family = AF_INET6; - } - if (conf->mode == MODE_TUN && (!conf->peers || conf->peers->next)) exit_error(ctx, "config error: for tun mode exactly one peer must be configured"); |