diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-07 21:09:19 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-07 21:09:19 +0000 |
commit | ec3650f00fdea55bbcd1984fdf96a2df0d0e63bc (patch) | |
tree | 8db983aa7006d5e0779e4bb234e5982ef352eda3 | |
parent | 8cc3307e0d240454985154504dfe8852c3cbb66a (diff) | |
download | tor-ec3650f00fdea55bbcd1984fdf96a2df0d0e63bc.tar.gz tor-ec3650f00fdea55bbcd1984fdf96a2df0d0e63bc.zip |
only whine about clock skew from the dirserver if he's a trusted
dirserver.
svn:r4048
-rw-r--r-- | src/or/directory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index b9a0854ccf..efea2ce4e3 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -60,7 +60,7 @@ char rend_publish_string[] = "/tor/rendezvous/publish"; char rend_fetch_url[] = "/tor/rendezvous/"; #endif -#define ALLOW_DIRECTORY_TIME_SKEW 30*60 +#define ALLOW_DIRECTORY_TIME_SKEW 30*60 /* 30 minutes */ /********* END VARIABLES ************/ @@ -649,8 +649,7 @@ connection_dir_client_reached_eof(connection_t *conn) now = time(NULL); delta = now-date_header; if (abs(delta)>ALLOW_DIRECTORY_TIME_SKEW) { - routerinfo_t *router = router_get_by_digest(conn->identity_digest); - log_fn((router && router->is_verified) ? LOG_WARN : LOG_INFO, + log_fn(router_digest_is_trusted_dir(conn->identity_digest) ? LOG_WARN : LOG_INFO, "Received directory with skewed time (server '%s'): we are %d minutes %s, or the directory is %d minutes %s.", conn->address, abs(delta)/60, delta>0 ? "ahead" : "behind", |