Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.3.0
-
None
-
Windows 7 (64 bit), Visual Studio 2013 Update 2
Description
When QUrl is set to a IPv6 host address containing a scope Id, the QUrl returns an empty URL.
#include <QUrl> int main(int /*argc*/, char* /*argv*/[]) { // With host address containing no IPv6 scopeId QUrl u("http://[::1]:8080"); qDebug( "1. url: %s", qPrintable( u.toString())); // With host address "::1%0" containing scopeId as // returned by QAbstractSocket::peerAddress() when // connecting with localhost IPv6. u = QUrl("http://[::1%0]:8080"); qDebug( "2. url: %s", qPrintable( u.toString())); }
prints:
1. url: http://[::1]:8080
2. url:
Attachments
Issue Links
- is replaced by
-
QTBUG-25550 Allow access to local hosts using link-local addresses
- Closed