mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
let private tor networks more reliably handle hidden services
this is a tweak on the fix in f87c6f100d
(see also #2088)
This commit is contained in:
parent
cc33ac362b
commit
44f6be4681
5
changes/bug3886
Normal file
5
changes/bug3886
Normal file
@ -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.
|
@ -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
|
* *clients* suffering from bug 2722 are obsolete. The first version
|
||||||
* to fix the bug was 0.2.2.25-alpha. */
|
* to fix the bug was 0.2.2.25-alpha. */
|
||||||
return (router->wants_to_be_hs_dir && router->dir_port &&
|
return (router->wants_to_be_hs_dir && router->dir_port &&
|
||||||
uptime > get_options()->MinUptimeHidServDirectoryV2 &&
|
uptime >= get_options()->MinUptimeHidServDirectoryV2 &&
|
||||||
router->is_running);
|
router->is_running);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user