mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Do not copy QHostAddresses
This commit is contained in:
@@ -536,9 +536,9 @@ TomahawkApp::initServent()
|
|||||||
int externalPort = TomahawkSettings::instance()->externalPort();
|
int externalPort = TomahawkSettings::instance()->externalPort();
|
||||||
bool autodetectIp = TomahawkSettings::instance()->autoDetectExternalIp();
|
bool autodetectIp = TomahawkSettings::instance()->autoDetectExternalIp();
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )
|
||||||
if ( !Servent::instance()->startListening( QHostAddress( QHostAddress::Any ), upnp, port, mode, defaultPort, autodetectIp, externalHostname, externalPort ) )
|
if ( !Servent::instance()->startListening( QHostAddress::Any, upnp, port, mode, defaultPort, autodetectIp, externalHostname, externalPort ) )
|
||||||
#else
|
#else
|
||||||
if ( !Servent::instance()->startListening( QHostAddress( QHostAddress::AnyIPv6 ), upnp, port, mode, defaultPort, autodetectIp, externalHostname, externalPort ) )
|
if ( !Servent::instance()->startListening( QHostAddress::AnyIPv6, upnp, port, mode, defaultPort, autodetectIp, externalHostname, externalPort ) )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
tLog() << "Failed to start listening with servent";
|
tLog() << "Failed to start listening with servent";
|
||||||
|
Reference in New Issue
Block a user