From 78c83b2e216d1db2465f661771cc11bdba74d9ce Mon Sep 17 00:00:00 2001 From: Mykola Baibuz Date: Thu, 19 Oct 2023 17:03:24 -0400 Subject: [PATCH] Some logic fix --- client/mozilla/localsocketcontroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/mozilla/localsocketcontroller.cpp b/client/mozilla/localsocketcontroller.cpp index cc1d6688..56178eeb 100644 --- a/client/mozilla/localsocketcontroller.cpp +++ b/client/mozilla/localsocketcontroller.cpp @@ -144,7 +144,7 @@ void LocalSocketController::activate(const QJsonObject &rawConfig) { QJsonArray plainAllowedIP = wgConfig.value(amnezia::config_key::allowed_ips).toArray(); QJsonArray defaultAllowedIP = QJsonArray::fromStringList(QString("0.0.0.0/0, ::/0").split(",")); - if (plainAllowedIP != defaultAllowedIP) { + if (plainAllowedIP != defaultAllowedIP && !plainAllowedIP.isEmpty()) { // Use AllowedIP list from WG config bacouse of higer priority for (auto v : plainAllowedIP) {