Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaba
Tor
Commits
e7da6810
Commit
e7da6810
authored
Dec 21, 2020
by
David Goulet
🤘
Browse files
Merge branch 'maint-0.4.5'
parents
43b38805
aae9a05a
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket40201
0 → 100644
View file @
e7da6810
o Minor bugfixes (logging, relay):
- Logs the address discovered by the directory authorities if none were
configured or detected before. Fixes bug 40201; bugfix on 0.4.5.1-alpha.
src/app/config/resolve_addr.c
View file @
e7da6810
...
@@ -130,8 +130,16 @@ resolved_addr_set_suggested(const tor_addr_t *addr)
...
@@ -130,8 +130,16 @@ resolved_addr_set_suggested(const tor_addr_t *addr)
tor_addr_family
(
addr
)
!=
AF_INET6
))
{
tor_addr_family
(
addr
)
!=
AF_INET6
))
{
return
;
return
;
}
}
tor_addr_copy
(
&
last_suggested_addrs
[
af_to_idx
(
tor_addr_family
(
addr
))],
addr
);
/* In case we don't have a configured address, log that we will be using the
* one discovered from the dirauth. */
const
int
idx
=
af_to_idx
(
tor_addr_family
(
addr
));
if
(
tor_addr_is_null
(
&
last_resolved_addrs
[
idx
])
&&
!
tor_addr_eq
(
&
last_suggested_addrs
[
idx
],
addr
))
{
log_notice
(
LD_CONFIG
,
"External address seen and suggested by a "
"directory authority: %s"
,
fmt_addr
(
addr
));
}
tor_addr_copy
(
&
last_suggested_addrs
[
idx
],
addr
);
}
}
/** Copy the last resolved address of family into addr_out.
/** Copy the last resolved address of family into addr_out.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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