fix: flush dns after in connected status

This commit is contained in:
Mykola Baibuz
2025-08-20 13:44:55 +03:00
parent 5570cb94b5
commit 4205bb1d31

View File

@@ -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();