summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
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;