From a92f1b82d00ee2342ba61ba67d20b72323d7fde4 Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Thu, 16 Mar 2023 16:47:26 +0300 Subject: [PATCH] fixed a bug with incorrect port detection when clicking the "scan installed containers" button --- client/core/servercontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/core/servercontroller.cpp b/client/core/servercontroller.cpp index 94968789..c0f6adae 100644 --- a/client/core/servercontroller.cpp +++ b/client/core/servercontroller.cpp @@ -917,7 +917,7 @@ ErrorCode ServerController::getAlreadyInstalledContainers(const ServerCredential if (containerInfo.isEmpty()) { continue; } - const static QRegularExpression containerAndPortRegExp("(amnezia[-a-z]*).*?>([0-9]*)/(udp|tcp).*"); + const static QRegularExpression containerAndPortRegExp("(amnezia[-a-z]*).*?:([0-9]*)->[0-9]*/(udp|tcp).*"); QRegularExpressionMatch containerAndPortMatch = containerAndPortRegExp.match(containerInfo); if (containerAndPortMatch.hasMatch()) { QString name = containerAndPortMatch.captured(1);