aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2013-02-11 17:09:10 -0500
committerRoger Dingledine <arma@torproject.org>2013-02-11 17:09:10 -0500
commitcc896f7c84c221d7dcfff1e0155533dce3ac5518 (patch)
tree55ff5874885e1208f15f728274fa80694897a45c /src/or/routerlist.c
parent719940df2bdfbd0f5ee02a9ca404f345d2fc49e8 (diff)
downloadtor-cc896f7c84c221d7dcfff1e0155533dce3ac5518.tar.gz
tor-cc896f7c84c221d7dcfff1e0155533dce3ac5518.zip
Teach resolve_my_address() to return a cached answer
I didn't make any of the callers use this feature yet.
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r--src/or/routerlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 90b707bcdb..2dde89b7e1 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3951,7 +3951,8 @@ trusted_dir_server_new(const char *nickname, const char *address,
dir_server_t *result;
if (!address) { /* The address is us; we should guess. */
- if (resolve_my_address(LOG_WARN, get_options(), &a, NULL, &hostname) < 0) {
+ if (resolve_my_address(LOG_WARN, get_options(),
+ &a, NULL, &hostname, 0) < 0) {
log_warn(LD_CONFIG,
"Couldn't find a suitable address when adding ourself as a "
"trusted directory server.");