dbhub: Fix port number mismatch when using port 443

This fixes checking out databases and pushing changes to them later.
Because for the first the port number was omitted and for the second it
was expected, looking up the last commit id in the database returned no
results which led to an 'Update required' error from the dbhub server.
This commit is contained in:
Martin Kleusberg
2020-07-10 10:53:51 +02:00
parent 6c2e38c269
commit 910ca3d2b9
+1 -1
View File
@@ -394,7 +394,7 @@ QString RemoteDatabase::getInfoFromClientCert(const QString& cert, CertInfo info
// Assemble the full URL from the host name. We use port 443 by default but for
// local development purposes we use 5550 instead.
QString host = cn_parts.last();
host = QString("https://%1:%2/").arg(host).arg(host.contains("docker-dev") ? "5550" : "443");
host = QString("https://%1%2/").arg(host).arg(host.contains("docker-dev") ? ":5550" : "");
return host;
}