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
David Goulet
Tor
Commits
639766db
Commit
639766db
authored
Sep 15, 2017
by
Nick Mathewson
🎨
Browse files
Merge branch 'maint-0.3.1'
Resolve conflict with 23532 code.
parents
a01e4a1a
49b5ad6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
changes/bug23533
0 → 100644
View file @
639766db
o Minor bugfixes (relay):
- Inform the geoip and rephist modules about all requests, even
on relays that are only fetching microdescriptors. Fixes a bug related
to 21585; bugfix on 0.3.0.1-alpha.
src/or/channel.c
View file @
639766db
...
...
@@ -2715,7 +2715,7 @@ channel_do_open_actions(channel_t *chan)
router_set_status
(
chan
->
identity_digest
,
1
);
}
else
{
/* only report it to the geoip module if it's not a known router */
if
(
!
router_get_by_id_digest
(
chan
->
identity_digest
))
{
if
(
!
connection_or_digest_is_known_relay
(
chan
->
identity_digest
))
{
if
(
channel_get_addr_if_possible
(
chan
,
&
remote_addr
))
{
char
*
transport_name
=
NULL
;
if
(
chan
->
get_transport_name
(
chan
,
&
transport_name
)
<
0
)
...
...
src/or/channeltls.c
View file @
639766db
...
...
@@ -1828,8 +1828,8 @@ channel_tls_process_netinfo_cell(cell_t *cell, channel_tls_t *chan)
#define NETINFO_NOTICE_SKEW 3600
if
(
labs
(
apparent_skew
)
>
NETINFO_NOTICE_SKEW
&&
(
started_here
||
connection_or_digest_is_known_relay
(
identity_digest
)))
{
int
trusted
=
router_digest_is_trusted_dir
(
identity_digest
);
connection_or_digest_is_known_relay
(
chan
->
conn
->
identity_digest
)))
{
int
trusted
=
router_digest_is_trusted_dir
(
chan
->
conn
->
identity_digest
);
clock_skew_warning
(
TO_CONN
(
chan
->
conn
),
apparent_skew
,
trusted
,
LD_GENERAL
,
"NETINFO cell"
,
"OR"
);
}
...
...
src/or/rephist.c
View file @
639766db
...
...
@@ -947,9 +947,9 @@ rep_hist_record_mtbf_data(time_t now, int missing_means_down)
base16_encode
(
dbuf
,
sizeof
(
dbuf
),
digest
,
DIGEST_LEN
);
if
(
missing_means_down
&&
hist
->
start_of_run
&&
!
router_get_by_id_digest
(
digest
))
{
!
connection_or_digest_is_known_relay
(
digest
))
{
/* We think this relay is running, but it's not listed in our
*
routerlist
. Somehow it fell out without telling us it went
*
consensus
. Somehow it fell out without telling us it went
* down. Complain and also correct it. */
log_info
(
LD_HIST
,
"Relay '%s' is listed as up in rephist, but it's not in "
...
...
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