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:
parent
2f5ebd2071
commit
f53369089a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user