The correct form is fc00::/7 without brackets.
Brackets are used only with URI or to delineate ports as in
https://[fc00::1]:443/ , and [fc00::1]:443 .
Addresses must also be represented in lower case.
I see numerous places in the manpage, and thus probably also in
the code that need fixed to not use brackets and be lowercased.
To make parsing easier for downstream consumers that may not
know or utilize [good] parsing libraries (tor tool script writers, etc),
you may want to override the 'should be followed' of rfc5952 and
instead offer to write / print all output in the full 32 character form.
If so I'd suggest making a new 'FullIPv6Representation" (FullIPv6Rep)
config option for that. The ability to easily add a FullIPv6Rep may
depend on if / where any syscall or output libraries are currently
used to do the writing / printing, and their adaptability.
Also, the correct form is fc00::/7 without brackets.
Brackets are used with URI's to delineate ports as in https://[fc00::1]:443/ .
Addresses must also be written in lower case.
I see numerous places in the manpage, and thus probably also in
the code that need fixed to not use brackets and be lowercased.
The code accepts any mix of lowercase and uppercase, I believe this to be a feature, not a bug. I'd be ok with making the man page and Tor output consistent, but I'm wary of breaking Control Port output parsers.
The code only accepts IPv6 addresses with brackets, and almost all contexts that accept an IPv6 address also accept a port. (This is one of the exceptions, there may be one or two more.) The current IPv6 parsing code also uses the brackets to distinguish between an IPv4 address and an IPv6 address. I think I'd prefer consistency over standards-compliance in this particular instance.
For tor purposes, I'd suggest to override the 'should be followed'
of rfc5952 and instead write/print output only in the full 32 character
form simply to make parsing easier for downstream consumers that
may not utilize parsing libraries (tor tool script writers, etc).
Or at least make a new 'FullIPv6Representation" (FullIPv6Rep)
config option for it.
If so I'd suggest making a new 'FullIPv6Representation" (FullIPv6Rep)
This is a different issue, please open an enhancement request.
As it is secondary yet potentially tied in, I'd like to table the
FullIPv6Rep part here for now.
Somewhat related, relay fingerprints also need to be
I couldn't find a Core Tor/Tor-specific ticket, do you have the number?
Moved the fingerprint subject to this ticket...
https://trac.torproject.org/projects/tor/ticket/12799