aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-04-19 11:43:39 -0400
committerNick Mathewson <nickm@torproject.org>2021-04-19 11:43:39 -0400
commitcbf71c4fa7a05033c068844ce9f214eeff5bb939 (patch)
treeadbac02e5d189bb158ba00eab0f47e0874c269aa /src
parent07237b484e051afe93b8115c673f2ffb4864edf0 (diff)
parent0ceacb5482848a4029eaf26095619ad09ff22c52 (diff)
downloadtor-cbf71c4fa7a05033c068844ce9f214eeff5bb939.tar.gz
tor-cbf71c4fa7a05033c068844ce9f214eeff5bb939.zip
Merge branch 'maint-0.4.6'
Diffstat (limited to 'src')
-rw-r--r--src/app/config/resolve_addr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c
index 43a3eb39de..09d4b800f6 100644
--- a/src/app/config/resolve_addr.c
+++ b/src/app/config/resolve_addr.c
@@ -343,6 +343,18 @@ get_address_from_config(const or_options_t *options, int warn_severity,
* used, custom authorities must be defined else it is a fatal error.
* Furthermore, if the Address was resolved to an internal interface, we
* stop immediately. */
+ if (ret == ERR_ADDRESS_IS_INTERNAL) {
+ static bool logged_once = false;
+ if (!logged_once) {
+ log_warn(LD_CONFIG, "Address set with an internal address. Tor will "
+ "not work unless custom directory authorities "
+ "are defined (AlternateDirAuthority). It is also "
+ "possible to use an internal address if "
+ "PublishServerDescriptor is set to 0 and "
+ "AssumeReachable(IPv6) to 1.");
+ logged_once = true;
+ }
+ }
tor_free(*hostname_out);
return FN_RET_BAIL;
}