summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:52:25 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:52:25 +0200
commit21ade840c989e9fcebef63e2999f5c31843c47b6 (patch)
tree54bac8e630858a22824262c91f0f71297c4feb34 /src/peer.c
parentc9c7cbb67c8a3cff9241bee1e1b1902be4e0a799 (diff)
downloadfastd-21ade840c989e9fcebef63e2999f5c31843c47b6.tar
fastd-21ade840c989e9fcebef63e2999f5c31843c47b6.zip
Unify enabled and dynamic flags into a config_state flag
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peer.c b/src/peer.c
index 9c3186e..8609894 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -742,8 +742,7 @@ fastd_peer_t* fastd_peer_add(fastd_peer_config_t *peer_conf) {
exit_bug("tried to add dynamic peer without on-verify command");
peer->config = fastd_peer_config_new(conf.peer_group);
-
- peer->dynamic = true;
+ peer->config->config_state = CONFIG_DYNAMIC;
peer->verify_timeout = ctx.now;
peer->verify_valid_timeout = ctx.now;