Allow acces to Amnezia DNS when used only for selected sites
This commit is contained in:
parent
a6b6e7850d
commit
1739d4861e
1 changed files with 8 additions and 0 deletions
|
|
@ -199,6 +199,14 @@ void LocalSocketController::activate(const QJsonObject &rawConfig) {
|
||||||
jsAllowedIPAddesses.append(range);
|
jsAllowedIPAddesses.append(range);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow access to Amnezia DNS
|
||||||
|
QJsonObject range_ipv4;
|
||||||
|
range_ipv4.insert("address", amnezia::protocols::dns::amneziaDnsIp);
|
||||||
|
range_ipv4.insert("range", 32);
|
||||||
|
range_ipv4.insert("isIpv6", false);
|
||||||
|
jsAllowedIPAddesses.append(range_ipv4);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue