mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Trim the address we get from upnp in case it's " ", otherwise it's not null
This commit is contained in:
@@ -81,7 +81,7 @@ PortFwdThread::work()
|
||||
qDebug() << "Trying to setup portfwd on" << tryport;
|
||||
if ( m_portfwd->add( tryport, m_port ) )
|
||||
{
|
||||
QString pubip = QString( m_portfwd->external_ip().c_str() );
|
||||
QString pubip = QString( m_portfwd->external_ip().c_str() ).trimmed();
|
||||
m_externalAddress = QHostAddress( pubip );
|
||||
m_externalPort = tryport;
|
||||
tDebug() << "External servent address detected as" << pubip << ":" << m_externalPort;
|
||||
|
Reference in New Issue
Block a user