diff options
author | Roger Dingledine <arma@torproject.org> | 2013-02-11 17:09:10 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2013-02-11 17:09:10 -0500 |
commit | cc896f7c84c221d7dcfff1e0155533dce3ac5518 (patch) | |
tree | 55ff5874885e1208f15f728274fa80694897a45c /src/or/routerlist.c | |
parent | 719940df2bdfbd0f5ee02a9ca404f345d2fc49e8 (diff) | |
download | tor-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.c | 3 |
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."); |