[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] Re: #1693 [Tor - Tor client]: Hidden service v2 directory answers with "not a directory"?
#1693: Hidden service v2 directory answers with "not a directory"?
------------------------------+---------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor - Tor client | Version:
Keywords: | Parent:
------------------------------+---------------------------------------------
Comment(by arma):
I attached a fix for the first part.
Here's the fix for the second part.
diff --git a/src/or/router.c b/src/or/router.c
index d105aef..a289c11 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1694,7 +1694,9 @@ router_dump_router_to_string(char *s, size_t maxlen,
route
onion_pkey, identity_pkey,
family_line,
we_are_hibernating() ? "opt hibernating 1\n" : "",
- options->HidServDirectoryV2 ? "opt hidden-service-dir\n" : "",
+ (options->HidServDirectoryV2 &&
+ directory_permits_begindir_requests(options)) ?
+ "opt hidden-service-dir\n" : "",
options->AllowSingleHopExits ? "opt allow-single-hop-exits\n" : "");
tor_free(family_line);
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1693#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online