1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

Trim the address we get from upnp in case it's " ", otherwise it's not null

This commit is contained in:
Leo Franchi 2011-11-04 12:59:05 -04:00
parent 2f5ebd2071
commit f53369089a

View File

@ -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;