note that addresses are not compressed by QHostAddress::toString()

what goes in goes out, the difference is in the scope only which is why
QHostAddress exists

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-03-30 07:23:35 +02:00
parent 80ae49dc5a
commit 342f615f7f

View file

@ -311,8 +311,8 @@ QAbstractSocket::NetworkLayerProtocol QHostAddress::protocol() const
For example, if the address is the IPv4 address 127.0.0.1, the
returned string is "127.0.0.1". For IPv6 the string format will
follow the RFC5952 recommendation only if \a options includes
QHostAddress::RemoveScope.
follow the RFC 5952 recommendation only if \a options includes
QHostAddress::RemoveScope. The addresses are not compressed.
*/
QByteArray QHostAddress::toString(FormattingOptions options) const
{