fix clientId accounting when filling out the white list

This commit is contained in:
mercury
2024-11-11 16:18:29 +04:00
parent bb3a807869
commit 5f38e73d6b
+2 -2
View File
@@ -5587,8 +5587,8 @@ DNS-over-HTTPS with IP:
} else {
$c['dns']['allowed_clients'] = [];
$c['dns']['allowed_clients'][] = '10.10.0.0/24';
if (!empty($pac['adguardKey'])) {
$c['dns']['allowed_clients'][] = $pac['adguardKey'];
if (!empty($pac['adguardkey'])) {
$c['dns']['allowed_clients'][] = $pac['adguardkey'];
}
$c['dns']['allowed_clients'][] = getenv('WGADDRESS');
$c['dns']['allowed_clients'][] = getenv('WG1ADDRESS');