summaryrefslogtreecommitdiffstats
path: root/src/resolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c
index b11ce9b..df48fec 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -113,7 +113,7 @@ static void* resolve_peer(void *varg) {
/** Starts to resolve a given dynamic remote of a peer to an IP address asynchronously */
void fastd_resolve_peer(fastd_peer_t *peer, fastd_remote_t *remote) {
- if (!peer->config)
+ if (fastd_peer_is_dynamic(peer))
exit_bug("trying to resolve dynamic peer");
if (!fastd_timed_out(&remote->last_resolve_timeout)) {