diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-26 01:02:35 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-02-26 01:02:35 +0100 |
commit | 4ab4858d5473c816cc526b296ae9da6c6956219d (patch) | |
tree | 67ac9253e6aa74a68699aa2a9e8e43d89e14c088 /src/resolve.c | |
parent | 87b9b80a55d3567e76fc86d3abc7f3cfd6d92e6f (diff) | |
download | fastd-4ab4858d5473c816cc526b296ae9da6c6956219d.tar fastd-4ab4858d5473c816cc526b296ae9da6c6956219d.zip |
Experimental support for accepting connections from unknown peers
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve.c b/src/resolve.c index c01a88f..3b15f57 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -101,6 +101,9 @@ static void* resolve_peer(void *varg) { } void fastd_resolve_peer(fastd_context_t *ctx, fastd_peer_t *peer) { + if (!peer->config) + exit_bug(ctx, "trying to resolve temporary peer"); + if (timespec_after(&peer->last_resolve, &peer->last_resolve_return)) { pr_debug(ctx, "not resolving %P as there is already a resolve running", peer); return; |