From 3bb40b213b26467df2604023ae29d915dc740128 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 16 Nov 2016 16:13:03 -0500 Subject: 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. --- src/or/dirserv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/dirserv.c') 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); -- cgit v1.2.3-54-g00ecf