mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Merge remote-tracking branch 'teor/bug17153'
This commit is contained in:
commit
a86f78a9f2
4
changes/bug17153
Normal file
4
changes/bug17153
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes (test networks, IPv6):
|
||||||
|
- Allow internal IPv6 addresses in descriptors in test networks.
|
||||||
|
Fixes bug 17153; bugfix on 6b4af1071 in 0.2.3.16-alpha.
|
||||||
|
Patch by "teor", reported by "karsten".
|
@ -1941,7 +1941,11 @@ router_build_fresh_descriptor(routerinfo_t **r, extrainfo_t **e)
|
|||||||
! p->server_cfg.no_advertise &&
|
! p->server_cfg.no_advertise &&
|
||||||
! p->server_cfg.bind_ipv4_only &&
|
! p->server_cfg.bind_ipv4_only &&
|
||||||
tor_addr_family(&p->addr) == AF_INET6) {
|
tor_addr_family(&p->addr) == AF_INET6) {
|
||||||
if (! tor_addr_is_internal(&p->addr, 0)) {
|
/* Like IPv4, if the relay is configured using the default
|
||||||
|
* authorities, disallow internal IPs. Otherwise, allow them. */
|
||||||
|
const int default_auth = (!options->DirAuthorities &&
|
||||||
|
!options->AlternateDirAuthority);
|
||||||
|
if (! tor_addr_is_internal(&p->addr, 0) || ! default_auth) {
|
||||||
ipv6_orport = p;
|
ipv6_orport = p;
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user