diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-08 19:22:53 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-08 19:22:53 +0100 |
commit | 4e9b2a8819c7062ad052cd6c549db1d0fbed001d (patch) | |
tree | 987c871f99025a46a1b702b905f006d193913572 /src/peer.c | |
parent | 5c859a2408506c53f1b3a17bdc867a649f5bf933 (diff) | |
download | fastd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |