diff options
author | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2016-11-16 16:13:03 -0500 |
commit | 3bb40b213b26467df2604023ae29d915dc740128 (patch) | |
tree | 91e51fc39ee26198b5ca161272daf1732cf0420d /src/or/dirserv.c | |
parent | caf7422871f058269b6b53e279463a130a372fc1 (diff) | |
download | tor-3bb40b213b26467df2604023ae29d915dc740128.tar.gz tor-3bb40b213b26467df2604023ae29d915dc740128.zip |
refactor router_pick_published_address to have another arg
no change in behavior except fewer log entries in the case where we use
a cached result.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 41945fe1d1..fd92522f92 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1033,7 +1033,8 @@ directory_fetches_from_authorities(const or_options_t *options) return 1; if (options->BridgeRelay == 1) return 0; - if (server_mode(options) && router_pick_published_address(options, &addr)<0) + if (server_mode(options) && + router_pick_published_address(options, &addr, 0) < 0) return 1; /* we don't know our IP address; ask an authority. */ refuseunknown = ! router_my_exit_policy_is_reject_star() && should_refuse_unknown_exits(options); |