aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.h
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-10-26 16:30:24 +1100
committerNick Mathewson <nickm@torproject.org>2017-11-02 10:19:05 -0400
commit77ed99b1a79e61146d9e3b9f51aac4fd1c2f5b03 (patch)
tree478cc405d7c91fd6892c4efc325625b7aaafec0d /src/or/routerparse.h
parentb4aa8fc3d918cc3aea375985c44abd086f91ae7a (diff)
downloadtor-77ed99b1a79e61146d9e3b9f51aac4fd1c2f5b03.tar.gz
tor-77ed99b1a79e61146d9e3b9f51aac4fd1c2f5b03.zip
Remove buggy IPv6 and ed25519 handling from get_lspecs_from_extend_info()
The previous version of this function had the following issues: * it didn't check if the extend_info contained an IPv6 address, * it didn't check if the ed25519 identity key was valid. But we can't add IPv6 support in a bugfix release. Instead, BUG() if the address is an IPv6 address, so we always put IPv4 addresses in link specifiers. And ignore missing ed25519 identifiers, rather than generating an all-zero link specifier. This supports v3 hidden services on IPv4, dual-stack, and IPv6, and v3 single onion services on IPv4 only. Part of 23820, bugfix on 0.3.2.1-alpha.
Diffstat (limited to 'src/or/routerparse.h')
0 files changed, 0 insertions, 0 deletions