aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-20 14:20:53 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-07-20 14:51:42 -0400
commitc18e52af7ce178e0dc78830e41948a9298e6d314 (patch)
treec6102a6edbb9f15065e76df5d1a7e34f0ca44814 /src/feature/relay
parentb18e2749191dd261462d12a315cd79fcbbccbefa (diff)
downloadtor-c18e52af7ce178e0dc78830e41948a9298e6d314.tar.gz
tor-c18e52af7ce178e0dc78830e41948a9298e6d314.zip
addr: Continue discovery if Address exits but not for wanted family
Commit b14b1f2b1d9 was a mistake. In case an Address statement is missing for the wanted family but another one exists for another family, simply continue the address discovery. It is not a mistake to be missing an Address statement for a family because the address could simply be discovered by the next methods. Not all address family requires a specific Address statement. However, we do bail if we couldn't find any valid address for the requested family _and_ a resolve failed meaning we had a hostname but couldn't resolve it. In that case, we can't know if that hostname would have been for v4 or v6 thus we can't continue the address discovery properly. Couple unit tests case were removed to match this reality. Related #40025 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay')
0 files changed, 0 insertions, 0 deletions