diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-13 08:23:20 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-20 14:54:13 -0400 |
commit | b239f178a22eb4c5b36e9e1490f237ac42f42449 (patch) | |
tree | 3ed36d24c23bd4e1bf2c107ad649db29bc6835b7 /src/feature/client | |
parent | c18e52af7ce178e0dc78830e41948a9298e6d314 (diff) | |
download | tor-b239f178a22eb4c5b36e9e1490f237ac42f42449.tar.gz tor-b239f178a22eb4c5b36e9e1490f237ac42f42449.zip |
addr: New function to find address to publish
In order for a relay to find which address to publish in its descriptor,
router_pick_published_address() is used. However, that function only supports
AF_INET and uses the directory server suggested address discovery mechanism.
This new function uses a new interface so that the caller can request an
address family and get the tor_addr_t object. Furthermore, it drops the use of
directory servers address discovery (tor#33244) and instead uses the new
suggested cache that is populated at the moment from data in the NETINFO cell
coming from the directory authorities.
At this commit, function is unused.
Related to #40025
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/client')
0 files changed, 0 insertions, 0 deletions