* DNS: remove /enable_protection and /disable_protection
This commit is contained in:
committed by
Ildar Kamalov
parent
3b13c031a3
commit
87bb773d3e
@@ -147,6 +147,30 @@ Response:
|
||||
}
|
||||
|
||||
|
||||
### Set DNS general settings: POST /control/dns_config
|
||||
|
||||
Replaces these API methods:
|
||||
|
||||
POST /control/enable_protection
|
||||
POST /control/disable_protection
|
||||
|
||||
Request:
|
||||
|
||||
POST /control/dns_config
|
||||
|
||||
{
|
||||
"protection_enabled": true | false,
|
||||
"ratelimit": 1234,
|
||||
"blocking_mode": "nxdomain" | "null_ip" | "custom_ip",
|
||||
"blocking_ipv4": "1.2.3.4",
|
||||
"blocking_ipv6": "1:2:3::4",
|
||||
}
|
||||
|
||||
Response:
|
||||
|
||||
200 OK
|
||||
|
||||
|
||||
## v0.99: incompatible API changes
|
||||
|
||||
* A note about web user authentication
|
||||
|
||||
@@ -99,26 +99,6 @@ paths:
|
||||
200:
|
||||
description: OK
|
||||
|
||||
/enable_protection:
|
||||
post:
|
||||
tags:
|
||||
- global
|
||||
operationId: enableProtection
|
||||
summary: "Enable protection (turns on dnsfilter module in coredns)"
|
||||
responses:
|
||||
200:
|
||||
description: OK
|
||||
|
||||
/disable_protection:
|
||||
post:
|
||||
tags:
|
||||
- global
|
||||
operationId: disableProtection
|
||||
summary: "Disable protection (turns off filtering, sb, parental, safesearch temporarily by disabling dnsfilter module in coredns)"
|
||||
responses:
|
||||
200:
|
||||
description: OK
|
||||
|
||||
/set_upstreams_config:
|
||||
post:
|
||||
tags:
|
||||
|
||||
Reference in New Issue
Block a user