]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
let private tor networks more reliably handle hidden services
authorRoger Dingledine <arma@torproject.org>
Thu, 1 Sep 2011 07:13:27 +0000 (03:13 -0400)
committerRoger Dingledine <arma@torproject.org>
Thu, 1 Sep 2011 07:13:27 +0000 (03:13 -0400)
this is a tweak on the fix in f87c6f100d (see also #2088)

changes/bug3886 [new file with mode: 0644]
src/or/dirserv.c

diff --git a/changes/bug3886 b/changes/bug3886
new file mode 100644 (file)
index 0000000..691d4ef
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes:
+    - Fix an edge case where TestingTorNetwork is set but the authorities
+      and relays all have an uptime of zero, where the private Tor network
+      could briefly lack support for hidden services. Fixes bug 3886;
+      bugfix on 0.2.2.18-alpha.
index 7df9a2fcaacde6870f263765ed7f95d712a36f6f..00b8205893d4f8f4bdc65f33b235787da49c100d 100644 (file)
@@ -1821,7 +1821,7 @@ dirserv_thinks_router_is_hs_dir(routerinfo_t *router, time_t now)
    * *clients* suffering from bug 2722 are obsolete.  The first version
    * to fix the bug was 0.2.2.25-alpha. */
   return (router->wants_to_be_hs_dir && router->dir_port &&
-          uptime > get_options()->MinUptimeHidServDirectoryV2 &&
+          uptime >= get_options()->MinUptimeHidServDirectoryV2 &&
           router->is_running);
 }