Some logic fix
This commit is contained in:
parent
414a47e2f2
commit
78c83b2e21
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ void LocalSocketController::activate(const QJsonObject &rawConfig) {
|
||||||
QJsonArray plainAllowedIP = wgConfig.value(amnezia::config_key::allowed_ips).toArray();
|
QJsonArray plainAllowedIP = wgConfig.value(amnezia::config_key::allowed_ips).toArray();
|
||||||
QJsonArray defaultAllowedIP = QJsonArray::fromStringList(QString("0.0.0.0/0, ::/0").split(","));
|
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
|
// Use AllowedIP list from WG config bacouse of higer priority
|
||||||
|
|
||||||
for (auto v : plainAllowedIP) {
|
for (auto v : plainAllowedIP) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue