mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 02:45:44 -05:00
[libcalamaresui] Warnings-- : we know TCP ports are 16 bit
This commit is contained in:
parent
79ae3cd00f
commit
0b6239a996
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ STATICTEST QString
|
|||
ficheLogUpload( const QByteArray& pasteData, const QUrl& serverUrl, QObject* parent )
|
||||
{
|
||||
QTcpSocket* socket = new QTcpSocket( parent );
|
||||
socket->connectToHost( serverUrl.host(), serverUrl.port() );
|
||||
// 16 bits of port-number
|
||||
socket->connectToHost( serverUrl.host(), quint16( serverUrl.port() ) );
|
||||
|
||||
if ( !socket->waitForConnected() )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue