We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
1 parent 52b367a commit b44f1b1Copy full SHA for b44f1b1
api/IPAddress.cpp
@@ -259,7 +259,7 @@ bool IPAddress::operator==(const uint8_t* addr) const
259
{
260
// IPv4 only comparison to byte pointer
261
// Can't support IPv6 as we know our type, but not the length of the pointer
262
- return _type == IPv4 && std::equal(_address.begin(), _address.end(), addr);
+ return _type == IPv4 && std::equal(_address.begin() + IPADDRESS_V4_BYTES_INDEX, _address.end(), addr);
263
}
264
265
uint8_t IPAddress::operator[](int index) const {
0 commit comments