Fixed cppcheck error

pull/271/head
SChernykh 2023-05-26 07:48:38 +02:00
parent e0a3add5f2
commit beea3e2184
1 changed files with 1 additions and 0 deletions

View File

@ -2214,6 +2214,7 @@ void P2PServer::P2PClient::on_peer_list_response(const uint8_t* buf)
buf += 2;
// Treat IPv4-mapped addresses as regular IPv4 addresses
// cppcheck-suppress uninitvar
if (is_v6 && ip.is_ipv4_prefix()) {
is_v6 = false;
}