summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-08 19:22:53 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-08 19:22:53 +0100
commit4e9b2a8819c7062ad052cd6c549db1d0fbed001d (patch)
tree987c871f99025a46a1b702b905f006d193913572 /src/peer.c
parent5c859a2408506c53f1b3a17bdc867a649f5bf933 (diff)
downloadfastd-4e9b2a8819c7062ad052cd6c549db1d0fbed001d.tar
fastd-4e9b2a8819c7062ad052cd6c549db1d0fbed001d.zip
Disable peer configs by default, enable on peer creation
This allows to remove some duplicate code, and will simplify the detection and handling of duplicate keys.
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peer.c b/src/peer.c
index c3279fb..55f0467 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -210,7 +210,7 @@ static void delete_peer(fastd_context_t *ctx, fastd_peer_t *peer) {
fastd_peer_config_t* fastd_peer_config_new(fastd_context_t *ctx, fastd_config_t *conf) {
fastd_peer_config_t *peer = malloc(sizeof(fastd_peer_config_t));
- peer->enabled = true;
+ peer->enabled = false;
peer->hostname = NULL;
memset(&peer->address, 0, sizeof(fastd_peer_address_t));