Socket type isn't used in all code

This commit is contained in:
David Rowe 2021-09-02 15:00:26 +12:00
parent b1050dc83a
commit 65dec6dfd8

View file

@ -129,7 +129,9 @@ bool SockAddr::hasPrivateAddress() const {
}
QDebug operator<<(QDebug debug, const SockAddr& sockAddr) {
debug.nospace() << socketTypeToString(sockAddr._socketType).toLocal8Bit().constData() << " "
debug.nospace()
<< (sockAddr._socketType != SocketType::Unknown
? (socketTypeToString(sockAddr._socketType) + " ").toLocal8Bit().constData() : "")
<< sockAddr._address.toString().toLocal8Bit().constData() << ":" << sockAddr._port;
return debug.space();
}