mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
IPv6 addresses should be partially expanded with '0' not 0x0.
This commit is contained in:
parent
c7da7c67c6
commit
788bcd29cf
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user