Description
QTcpServer server;
server.listen(QHostAddress::Any, 0);
Q_ASSERT(server.serverAddress() == QHostAddress::Any);
hits the assert with current Qt5.
server.serverAddress() in this case is currently returning "::%0" with protocol() set as IPv6.
Attachments
Issue Links
- depends on
-
QTBUG-22898 QHostAddress::operator==(SpecialAddress) fails if address is not IPv4 or IPv6 (QHostAddress::Any)
- Closed