[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):

 As for why it says opt hidden-service-dir, they all say that:

     options->HidServDirectoryV2 ? "opt hidden-service-dir\n" : "",

 config.c:  V(HidServDirectoryV2,          BOOL,     "1"),

 As for why it gets the HSDir flag, it doesn't look at DirPort:
 /** Return true iff <b>router</b> should be assigned the "HSDir" flag.
  * Right now this means it advertises support for it, it has a high
  * uptime, and it's currently considered Running.
  *
 ...
 dirserv_thinks_router_is_hs_dir(routerinfo_t *router, time_t now)

 So it seems like the short-term fix is for directory authorities to stop
 assigning the HSDir flag if the relay's DirPort is off. At the same time
 we should teach relays not to advertise "opt hidden-service-dir" unless
 they can really do it.

 And somebody should double-check the part of the code where we only
 publish
 to and fetch from relays that have the HSDir flag. I think that's
 hid_serv_get_responsible_directories() and it looks ok at first glance.

 Long-term, imo the fix should be that relays should accept and handle
 begindir
 requests even if their dirport is off. But that long-term fix is
 irrelevant
 for this bug.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1693#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online