mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
Do not copy QHostAddresses
This commit is contained in:
parent
72ce26e64d
commit
2200527678
@ -536,9 +536,9 @@ TomahawkApp::initServent()
|
||||
int externalPort = TomahawkSettings::instance()->externalPort();
|
||||
bool autodetectIp = TomahawkSettings::instance()->autoDetectExternalIp();
|
||||
#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
|
||||
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
|
||||
{
|
||||
tLog() << "Failed to start listening with servent";
|
||||
|
Loading…
x
Reference in New Issue
Block a user