Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
cbf71c4f
Commit
cbf71c4f
authored
Apr 19, 2021
by
Nick Mathewson
🌻
Browse files
Merge branch 'maint-0.4.6'
parents
07237b48
0ceacb54
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket40290
0 → 100644
View file @
cbf71c4f
o Minor bugfix (logging, relay):
- Emit a warning if an Address is found to be internal and tor can't use it.
Fixes bug 40290; bugfix on 0.4.5.1-alpha.
src/app/config/resolve_addr.c
View file @
cbf71c4f
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment