+ dns: support blocking_mode=custom_ip

This commit is contained in:
Simon Zolin
2019-11-08 16:19:56 +03:00
committed by Ildar Kamalov
parent 26ccee47b5
commit 4f4da3397c
3 changed files with 76 additions and 11 deletions

View File

@@ -819,7 +819,9 @@ Response:
{
"protection_enabled": true | false,
"ratelimit": 1234,
"blocking_mode": "nxdomain" | "null_ip",
"blocking_mode": "nxdomain" | "null_ip" | "custom_ip",
"blocking_ipv4": "1.2.3.4",
"blocking_ipv6": "1:2:3::4",
}
@@ -832,13 +834,17 @@ Request:
{
"protection_enabled": true | false,
"ratelimit": 1234,
"blocking_mode": "nxdomain" | "null_ip",
"blocking_mode": "nxdomain" | "null_ip" | "custom_ip",
"blocking_ipv4": "1.2.3.4",
"blocking_ipv6": "1:2:3::4",
}
Response:
200 OK
`blocking_ipv4` and `blocking_ipv6` values are active when `blocking_mode` is set to `custom_ip`.
## DNS access settings