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
Ali Raheem
Tor
Commits
27ee1283
Commit
27ee1283
authored
Jan 19, 2021
by
Nick Mathewson
🎨
Browse files
Merge remote-tracking branch 'tor-gitlab/mr/261' into maint-0.4.5
parents
e3a54826
691c7171
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/ticket40243
0 → 100644
View file @
27ee1283
o Major bugfixes (authority, IPv6):
- Do not consider multiple relays in the same IPv6 network to be sybils.
Sybils are selected based on the /128 now, not the /64. Fixes bug 40243;
bugfix on 0.4.5.1-alpha.
src/feature/dirauth/dirvote.c
View file @
27ee1283
...
...
@@ -4219,8 +4219,7 @@ compare_routerinfo_addrs_by_family(const routerinfo_t *a,
{
const
tor_addr_t
*
addr1
=
(
family
==
AF_INET
)
?
&
a
->
ipv4_addr
:
&
a
->
ipv6_addr
;
const
tor_addr_t
*
addr2
=
(
family
==
AF_INET
)
?
&
b
->
ipv4_addr
:
&
b
->
ipv6_addr
;
const
int
maskbits
=
(
family
==
AF_INET
)
?
32
:
64
;
return
tor_addr_compare_masked
(
addr1
,
addr2
,
maskbits
,
CMP_EXACT
);
return
tor_addr_compare
(
addr1
,
addr2
,
CMP_EXACT
);
}
/** Helper for sorting: compares two ipv4 routerinfos first by ipv4 address,
...
...
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