Commit 67a92451 authored by Natsumi Higa's avatar Natsumi Higa Committed by Aleix Pol Gonzalez
Browse files

Fix IPv6 address format

parent 80178b8f
Pipeline #57912 passed with stage
in 4 minutes and 15 seconds
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment