summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peer.c b/src/peer.c
index 20058fb..ac711f0 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -738,7 +738,7 @@ fastd_peer_t* fastd_peer_add(fastd_peer_config_t *peer_conf) {
pr_verbose("adding peer %P (group `%s')", peer, fastd_peer_get_group(peer)->name);
}
else {
-#ifdef WITH_VERIFY
+#ifdef WITH_DYNAMIC_PEERS
if (!fastd_shell_command_isset(&conf.on_verify))
exit_bug("tried to add dynamic peer without on-verify command");
@@ -913,7 +913,7 @@ static bool maintain_peer(fastd_peer_t *peer) {
if (fastd_peer_is_dynamic(peer) || fastd_peer_is_established(peer)) {
/* check for peer timeout */
if (fastd_timed_out(&peer->timeout)) {
-#ifdef WITH_VERIFY
+#ifdef WITH_DYNAMIC_PEERS
if (fastd_peer_is_dynamic(peer) &&
fastd_timed_out(&peer->verify_timeout) &&
fastd_timed_out(&peer->verify_valid_timeout)) {