summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-02-22 15:37:39 -0500
committerNick Mathewson <nickm@torproject.org>2021-02-22 15:37:39 -0500
commit6e3a7c410f2c0cfd2f705862cc4d32acd0a88096 (patch)
treea26d78c81324a8460651f016b2b9f76d6d581c08 /src/feature
parenta4df1e8ea47842a76e4fc3ebc750e68b728f222e (diff)
parentbc21ed32903459c53599ee03605e8d23bf42ffe9 (diff)
downloadtor-6e3a7c410f2c0cfd2f705862cc4d32acd0a88096.tar.gz
tor-6e3a7c410f2c0cfd2f705862cc4d32acd0a88096.zip
Merge branch 'maint-0.4.5'
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/relay/relay_find_addr.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/feature/relay/relay_find_addr.c b/src/feature/relay/relay_find_addr.c
index 39e1cc6a19..2a3f602438 100644
--- a/src/feature/relay/relay_find_addr.c
+++ b/src/feature/relay/relay_find_addr.c
@@ -144,17 +144,6 @@ relay_find_addr_to_publish, (const or_options_t *options, int family,
if (find_my_address(options, family, LOG_INFO, addr_out, NULL, NULL)) {
goto found;
}
- /* No publishable address was found even though we have an ORPort thus
- * print a notice log so operator can notice. We'll do that every hour so
- * it is not too spammy but enough so operators address the issue. */
- static ratelim_t rlim = RATELIM_INIT(3600);
- log_fn_ratelim(&rlim, LOG_NOTICE, LD_CONFIG,
- "Unable to find %s address for ORPort %u. "
- "You might want to specify %sOnly to it or set an "
- "explicit address or set Address.",
- fmt_af_family(family),
- routerconf_find_or_port(options, family),
- fmt_af_family(family));
}
/* Third, consider address from our suggestion cache. */
@@ -163,7 +152,19 @@ relay_find_addr_to_publish, (const or_options_t *options, int family,
goto found;
}
- /* No publishable address was found. */
+ /* No publishable address was found even though we have an ORPort thus
+ * print a notice log so operator can notice. We'll do that every hour so
+ * it is not too spammy but enough so operators address the issue. */
+ static ratelim_t rlim = RATELIM_INIT(3600);
+ log_fn_ratelim(&rlim, LOG_NOTICE, LD_CONFIG,
+ "Unable to find %s address for ORPort %u. "
+ "You might want to specify %sOnly to it or set an "
+ "explicit address or set Address.",
+ fmt_af_family(family),
+ routerconf_find_or_port(options, family),
+ fmt_af_family(family));
+
+ /* Not found. */
return false;
found: