mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-05 19:19:18 +00:00
Fixes #5766 Updated MQTT privateCidrRanges to add Tailscale
This commit is contained in:
parent
30a31a3a13
commit
23d2cfd5a0
@ -217,6 +217,7 @@ bool isPrivateIpAddress(const IPAddress &ip)
|
|||||||
{.network = 169u << 24 | 254 << 16, .mask = 0xffff0000}, // 169.254.0.0/16
|
{.network = 169u << 24 | 254 << 16, .mask = 0xffff0000}, // 169.254.0.0/16
|
||||||
{.network = 10u << 24, .mask = 0xff000000}, // 10.0.0.0/8
|
{.network = 10u << 24, .mask = 0xff000000}, // 10.0.0.0/8
|
||||||
{.network = 127u << 24 | 1, .mask = 0xffffffff}, // 127.0.0.1/32
|
{.network = 127u << 24 | 1, .mask = 0xffffffff}, // 127.0.0.1/32
|
||||||
|
{.network = 100u << 24 | 64 << 16, .mask = 0xffc00000}, // 100.64.0.0/10
|
||||||
};
|
};
|
||||||
const uint32_t addr = ntohl(ip);
|
const uint32_t addr = ntohl(ip);
|
||||||
for (const auto &cidrRange : privateCidrRanges) {
|
for (const auto &cidrRange : privateCidrRanges) {
|
||||||
|
Loading…
Reference in New Issue
Block a user