IPv6 addresses should be partially expanded with '0' not 0x0.

This commit is contained in:
Sadie Powell 2023-04-29 12:03:05 +01:00
parent c7da7c67c6
commit 788bcd29cf

View File

@ -117,7 +117,7 @@ const std::string& User::GetAddress()
// need to partially expand the address to avoid issues with
// the IRC wire format.
if (cached_address[0] == ':')
cached_address.insert(cached_address.begin(), 1, 0);
cached_address.insert(cached_address.begin(), 1, '0');
cached_address.shrink_to_fit();
}