From 4205bb1d31ba7a7410fec48b1873d6ac39416ce9 Mon Sep 17 00:00:00 2001 From: Mykola Baibuz Date: Wed, 20 Aug 2025 13:44:55 +0300 Subject: [PATCH] fix: flush dns after in connected status --- client/vpnconnection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/vpnconnection.cpp b/client/vpnconnection.cpp index f1a6cee19..9f6ecb644 100644 --- a/client/vpnconnection.cpp +++ b/client/vpnconnection.cpp @@ -83,7 +83,9 @@ void VpnConnection::onConnectionStateChanged(Vpn::ConnectionState state) if (IpcClient::Interface()) { if (state == Vpn::ConnectionState::Connected) { IpcClient::Interface()->resetIpStack(); - IpcClient::Interface()->flushDns(); + if (container != DockerContainer::Ipsec) { + IpcClient::Interface()->flushDns(); + } if (container != DockerContainer::Awg && container != DockerContainer::WireGuard) { QString dns1 = m_vpnConfiguration.value(config_key::dns1).toString();