[metrics-team] No "hidden-service-dir" information in ServerDescriptor

teor teor2345 at gmail.com
Sat Feb 17 13:51:24 UTC 2018


> On 17 Feb 2018, at 23:08, Katharina Haselhorst <katharina.haselhorst at sit.fraunhofer.de> wrote:
> 
> Hello,
>>> You might be looking for getHiddenServiceDirVersions in RelayServerDescriptor (see [0])?
>> Most relays don't advertise any VersionNums for this field, so it won't tell you if the relay supports v2 or v3 HSDir. It just looks like this:
>> hidden-service-dir

Do not use getHiddenServiceDirVersion.
It will not tell you the correct versions for most relays.
It should be deprecated.

> I see - this means:
> null for getHieednServiceDirVersion -> no support at all

Yes.

> empty list -> default

No, the list returned by getHiddenServiceDirVersion contains version 2 if the line
is empty [0], even if the relay supports versions 2 and 3. This is a spec bug [1],
and an implementation bug.

> otherwise -> the versions announced

Relays that use the Tor codebase do not announce versions in this line.
It is not accurate.

> And the better source of information about the exact versions supported is the one from getProtocols.
> Did I get that right?

You must use getProtocols to get HSDir versions.
There is no other field that is accurate.

T

[0] https://gitweb.torproject.org/metrics-lib.git/tree/src/main/java/org/torproject/descriptor/impl/ServerDescriptorImpl.java#n464

[1] https://trac.torproject.org/projects/tor/ticket/25284
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/metrics-team/attachments/20180218/90461e4d/attachment.html>


More information about the metrics-team mailing list