diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-21 00:45:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-21 00:45:18 +0000 |
commit | b137f6d19fdc35a838f1557d2732369dd443c1cb (patch) | |
tree | b68a677fed7582c41eb0bb8169f3193fef94be73 /src | |
parent | 8115ca5f99bf943104e2c25d93b4f5197b89d75e (diff) | |
download | tor-b137f6d19fdc35a838f1557d2732369dd443c1cb.tar.gz tor-b137f6d19fdc35a838f1557d2732369dd443c1cb.zip |
if we get an incredibly skewed timestamp from a dirserver mirror that
isn't a verified OR, don't complain very loudly -- it's probably him
that's wrong.
svn:r3395
Diffstat (limited to 'src')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 1894a7209a..ee50f46e77 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -613,7 +613,9 @@ connection_dir_client_reached_eof(connection_t *conn) now = time(NULL); delta = now-date_header; if (abs(delta)>ALLOW_DIRECTORY_TIME_SKEW) { - log_fn(LOG_WARN, "Received directory with skewed time (server '%s'): we are %d minutes %s, or the directory is %d minutes %s.", + routerinfo_t *router = router_get_by_digest(conn->identity_digest); + log_fn((router && router->is_verified) ? 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", abs(delta)/60, delta>0 ? "behind" : "ahead"); |