From a6e2929ed8723959810db3d67f99674e58fb0047 Mon Sep 17 00:00:00 2001
From: "danil.martynenko" <danil.martynenko@demlabs.net>
Date: Wed, 19 Mar 2025 12:29:22 +0300
Subject: [PATCH] Revert "[*] fixed connectionExists for DapTunLinux"

This reverts commit 53dde55d479a16971fc5161f540847b3a6c1e8cf.
---
 vpn/client/linux-src/DapTunLinux.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vpn/client/linux-src/DapTunLinux.cpp b/vpn/client/linux-src/DapTunLinux.cpp
index 245f08ef0..060dda202 100644
--- a/vpn/client/linux-src/DapTunLinux.cpp
+++ b/vpn/client/linux-src/DapTunLinux.cpp
@@ -172,7 +172,7 @@ void DapTunLinux::checkDefaultGetaweyMetric()
 
 bool DapTunLinux::connectionExists(const QString &connName)
 {
-    QString result = runBashCmd(QString("nmcli -t --fields %1 connection show | grep -w '%1'").arg(connName));
+    QString result = runBashCmd(QString("nmcli -t --fields NAME connection show | grep -w '%1'").arg(connName));
     return !result.isEmpty();
 }
 
-- 
GitLab