aboutsummaryrefslogtreecommitdiff
path: root/changes/ticket33238
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-07-02 09:44:49 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-02 11:00:42 -0400
commit45afb31e1ce7c8572342c4e444a178b590d9645d (patch)
tree67a7da1048eff0ba5f152b67b7282d79e154c71f /changes/ticket33238
parent9b560ea71471b86a85c446f796b8934ea9c1bed8 (diff)
downloadtor-45afb31e1ce7c8572342c4e444a178b590d9645d.tar.gz
tor-45afb31e1ce7c8572342c4e444a178b590d9645d.zip
addr: Prioritize interface lookup over local hostname
The find_my_address() function now prioritize the local interface over the local hostname when guessing the IP address. See proposal 312, section 3.2.1, general case: https://gitweb.torproject.org/torspec.git/tree/proposals/312-relay-auto-ipv6-addr.txt#n359 The entire unit tests had to be refactored to make this possible. Instead of hot patching it, it has been rewritten to cover all possible cases and the test interface has been changed to accomodate both IPv4 and IPv6 in order for them to be tested identically. Closes #33238 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'changes/ticket33238')
-rw-r--r--changes/ticket332385
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/ticket33238 b/changes/ticket33238
new file mode 100644
index 0000000000..2c4c3968cc
--- /dev/null
+++ b/changes/ticket33238
@@ -0,0 +1,5 @@
+ o Minor feature (address discovery):
+ - If no Address statements are found, relays now prioritize guessing their
+ address by looking at the local interface instead of the local hostname.
+ If the interface address can't be found, the local hostname is used.
+ Closes ticket 33238.