mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-23 14:52:24 +00:00
Ignore IP assignment pool ranges that begin with 0.0.0.0 or that contain no IPs.
This commit is contained in:
parent
2c328d61ad
commit
2b3e1d5c10
@ -2009,7 +2009,7 @@ NetworkController::ResultCode SqliteNetworkController::_doNetworkConfigRequest(c
|
|||||||
|
|
||||||
uint32_t ipRangeStart = Utils::ntoh(*(reinterpret_cast<const uint32_t *>(ipRangeStartB + 12)));
|
uint32_t ipRangeStart = Utils::ntoh(*(reinterpret_cast<const uint32_t *>(ipRangeStartB + 12)));
|
||||||
uint32_t ipRangeEnd = Utils::ntoh(*(reinterpret_cast<const uint32_t *>(ipRangeEndB + 12)));
|
uint32_t ipRangeEnd = Utils::ntoh(*(reinterpret_cast<const uint32_t *>(ipRangeEndB + 12)));
|
||||||
if (ipRangeEnd < ipRangeStart)
|
if ((ipRangeEnd <= ipRangeStart)||(ipRangeStart == 0))
|
||||||
continue;
|
continue;
|
||||||
uint32_t ipRangeLen = ipRangeEnd - ipRangeStart;
|
uint32_t ipRangeLen = ipRangeEnd - ipRangeStart;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user