Fix IPv6 address format
This commit is contained in:
parent
80178b8ff8
commit
67a92451e4
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,10 @@ void Mounter::onPackageReceived(const NetworkPacket& np)
|
|||
return;
|
||||
}
|
||||
QString ip = addr.toString();
|
||||
if (addr.protocol() == QAbstractSocket::IPv6Protocol) {
|
||||
ip.prepend(QLatin1Char('['));
|
||||
ip.append(QLatin1Char(']'));
|
||||
}
|
||||
|
||||
const QStringList arguments = QStringList()
|
||||
<< QStringLiteral("%1@%2:%3").arg(
|
||||
|
|
Loading…
Reference in a new issue