diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 19:53:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-12-16 19:53:16 +0100 |
commit | ee300afb79e9788f98d4c98d4535018f7fdbdcdd (patch) | |
tree | 440d42f6b785628e77a38ff5d4d04f50576bca0b /src/resolve.c | |
parent | 4475652054616ded16485341b081abf42cc6c08e (diff) | |
download | fastd-ee300afb79e9788f98d4c98d4535018f7fdbdcdd.tar fastd-ee300afb79e9788f98d4c98d4535018f7fdbdcdd.zip |
Revert "resolve: save a timestamp in the resolve return to ensure we don't confuse remotes before and after reconfiguration"
This reverts commit 4475652054616ded16485341b081abf42cc6c08e.
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resolve.c b/src/resolve.c index 8dcdb2d..9631c48 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -34,7 +34,6 @@ typedef struct resolv_arg { fastd_context_t *ctx; fastd_remote_t *remote; - struct timespec resolve_time; char *hostname; fastd_peer_address_t constraints; } resolv_arg_t; @@ -72,8 +71,7 @@ static void* resolve_peer(void *varg) { } fastd_resolve_return_t ret = { - .remote = arg->remote, - .resolve_time = arg->resolve_time, + .remote = arg->remote }; if (!error) { @@ -115,7 +113,6 @@ void fastd_resolve_peer(fastd_context_t *ctx, fastd_peer_t *peer, fastd_remote_t arg->ctx = ctx; arg->remote = remote; - arg->resolve_time = ctx->now; arg->hostname = strdup(remote->config->hostname); arg->constraints = remote->config->address; |