diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-01 15:11:40 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-11-01 15:11:40 +0100 |
commit | cb98cbc593309d4781dfb873b018a5d4e12ad118 (patch) | |
tree | c5c0760dbd36cabec9d421f678b5ebd4d59ed25e /src/config.c | |
parent | 86df5dbefec807234e9a458da00acbbd2e0e6649 (diff) | |
download | fastd-cb98cbc593309d4781dfb873b018a5d4e12ad118.tar fastd-cb98cbc593309d4781dfb873b018a5d4e12ad118.zip |
Dynamically create and destroy sockets without fixed binds
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c index b0f4754..228951e 100644 --- a/src/config.c +++ b/src/config.c @@ -434,7 +434,6 @@ bool fastd_read_config(fastd_context *ctx, fastd_config *conf, const char *filen } static void count_peers(fastd_context *ctx, fastd_config *conf) { - conf->n_peers = 0; conf->n_floating = 0; conf->n_v4 = 0; conf->n_v6 = 0; @@ -444,8 +443,6 @@ static void count_peers(fastd_context *ctx, fastd_config *conf) { fastd_peer_config *peer; for (peer = conf->peers; peer; peer = peer->next) { - conf->n_peers++; - switch (peer->address.sa.sa_family) { case AF_UNSPEC: if (peer->hostname) |