diff --git a/mythtv/libs/libmythupnp/upnpdevice.cpp b/mythtv/libs/libmythupnp/upnpdevice.cpp index d121dcb..6b49297 100644 --- a/mythtv/libs/libmythupnp/upnpdevice.cpp +++ b/mythtv/libs/libmythupnp/upnpdevice.cpp @@ -357,14 +357,14 @@ void UPnpDeviceDesc::GetValidXML( QString BaseAddr; QHostAddress addr(sBaseAddress); + BaseAddr = sBaseAddress; + #if !defined(QT_NO_IPV6) // Basically if it appears to be an IPv6 IP surround the IP with [] otherwise don't bother - if (( addr.protocol() == QAbstractSocket::IPv6Protocol ) || (sBaseAddress.contains(":"))) + if (sBaseAddress.contains(":")) BaseAddr = "[" + sBaseAddress + "]"; else #endif - if ( addr.protocol() == QAbstractSocket::IPv4Protocol ) - BaseAddr = sBaseAddress; os << "\n" "\n"