diff options
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fastd.c b/src/fastd.c index c67c875..e7f7621 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -222,15 +222,15 @@ static void init_peers(void) { for (i = 0; i < VECTOR_LEN(ctx.peers);) { fastd_peer_t *peer = VECTOR_INDEX(ctx.peers, i); - if (peer->config) { - if (!peer->config->enabled) { - pr_info("previously enabled peer %P disabled, deleting.", peer); + if (fastd_peer_is_dynamic(peer)) { + if (!conf.protocol->peer_check_dynamic(peer)) { fastd_peer_delete(peer); continue; } } else { - if (!conf.protocol->peer_check_dynamic(peer)) { + if (!peer->config->enabled) { + pr_info("previously enabled peer %P disabled, deleting.", peer); fastd_peer_delete(peer); continue; } |