mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
make the local and private network masks explicit when we complain
svn:r4501
This commit is contained in:
parent
caf7af26d7
commit
6b21c8e74f
@ -1263,11 +1263,11 @@ exit_policy_implicitly_allows_local_networks(addr_policy_t *policy,
|
|||||||
static struct {
|
static struct {
|
||||||
uint32_t addr; uint32_t mask; const char *network;
|
uint32_t addr; uint32_t mask; const char *network;
|
||||||
} private_networks[] = {
|
} private_networks[] = {
|
||||||
{ 0x7f000000, 0xff000000, "localhost (127.x)" },
|
{ 0x7f000000, 0xff000000, "localhost (127.0.0.0/8)" },
|
||||||
{ 0x0a000000, 0xff000000, "addresses in private network 10.x" },
|
{ 0x0a000000, 0xff000000, "addresses in private network 10.0.0.0/8" },
|
||||||
{ 0xa9fe0000, 0xffff0000, "addresses in private network 169.254.x" },
|
{ 0xa9fe0000, 0xffff0000, "addresses in private network 169.254.0.0/16" },
|
||||||
{ 0xac100000, 0xfff00000, "addresses in private network 172.16.x" },
|
{ 0xac100000, 0xfff00000, "addresses in private network 172.16.0.0/12" },
|
||||||
{ 0xc0a80000, 0xffff0000, "addresses in private network 192.168.x" },
|
{ 0xc0a80000, 0xffff0000, "addresses in private network 192.168.0.0/16" },
|
||||||
{ 0,0,NULL},
|
{ 0,0,NULL},
|
||||||
};
|
};
|
||||||
for (i=0; private_networks[i].addr; ++i) {
|
for (i=0; private_networks[i].addr; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user