]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
if we get an incredibly skewed timestamp from a dirserver mirror that
authorRoger Dingledine <arma@torproject.org>
Fri, 21 Jan 2005 00:45:18 +0000 (00:45 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 21 Jan 2005 00:45:18 +0000 (00:45 +0000)
isn't a verified OR, don't complain very loudly -- it's probably him
that's wrong.

svn:r3395

src/or/directory.c

index 1894a7209a85824f6959559f0db6f51a4be1ce1c..ee50f46e77a8cfdb4f86e73f474c64dfccae00e2 100644 (file)
@@ -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");