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
For Gerrit Dashboard: QTBUG-22899 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
10190,1 | Fix QTcpServer::serverAddress() for dual stack sockets | master | qt/qtbase | Status: MERGED | +2 | 0 |