mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 10:18:14 +00:00
WG/AWG Desktop AllowedIP from plain WG config
This commit is contained in:
@@ -263,11 +263,8 @@ QJsonObject ImportController::extractWireGuardConfig(const QString &data)
|
||||
// return QJsonObject();
|
||||
// }
|
||||
|
||||
auto allowedIps = configMap.value("AllowedIPs").split(",");
|
||||
QJsonArray allowedIpsJsonArray;
|
||||
for (const auto &allowedIp : allowedIps) {
|
||||
allowedIpsJsonArray.append(allowedIp);
|
||||
}
|
||||
QJsonArray allowedIpsJsonArray = QJsonArray::fromStringList(configMap.value("AllowedIPs").split(","));
|
||||
|
||||
lastConfig[config_key::allowed_ips] = allowedIpsJsonArray;
|
||||
|
||||
QString protocolName = "wireguard";
|
||||
|
||||
Reference in New Issue
Block a user