diff options
author | David Goulet <dgoulet@torproject.org> | 2020-06-24 10:35:27 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-06-24 13:51:37 -0400 |
commit | 59f5c3d26337ba82be2a7cb2af02ba77e02c1b87 (patch) | |
tree | a4171882b461a300152c9fb67258b684f440811d /src/feature/dircache | |
parent | 25a451bac748fd01498d3b851d4f1a5e556eaf32 (diff) | |
download | tor-59f5c3d26337ba82be2a7cb2af02ba77e02c1b87.tar.gz tor-59f5c3d26337ba82be2a7cb2af02ba77e02c1b87.zip |
addr: Refactor find_my_address() to simplify it
Instead of a complex if/else block, use a table of functions that have the
same interface and each of them attempt to find the address one after the
other.
Pointed out by nickm's during review.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/dircache')
0 files changed, 0 insertions, 0 deletions