mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 03:02:07 +03:00
Merge pull request #38 in DNS/adguard-dns from bugfix/344 to master
* commit 'a65a40c6beb00176f46e7187ba0c4b678b17f6d8': Update /status to return currently set upstream DNS servers. web UI -- Fix engrish when checking upstream DNS servers succeeds
This commit is contained in:
commit
381b96a4b1
@ -439,7 +439,7 @@ export const testUpstream = servers => async (dispatch) => {
|
||||
});
|
||||
|
||||
if (testMessages.every(message => message === 'OK')) {
|
||||
dispatch(addSuccessToast('All servers is OK'));
|
||||
dispatch(addSuccessToast('Specified DNS servers are working correctly'));
|
||||
}
|
||||
|
||||
dispatch(testUpstreamSuccess());
|
||||
|
@ -193,6 +193,7 @@ func handleStatus(w http.ResponseWriter, r *http.Request) {
|
||||
"dns_address": config.BindHost,
|
||||
"dns_port": config.CoreDNS.Port,
|
||||
"querylog_enabled": config.CoreDNS.QueryLogEnabled,
|
||||
"upstream_dns": config.CoreDNS.UpstreamDNS,
|
||||
}
|
||||
|
||||
json, err := json.Marshal(data)
|
||||
|
10
openapi.yaml
10
openapi.yaml
@ -61,6 +61,16 @@ paths:
|
||||
responses:
|
||||
200:
|
||||
description: OK
|
||||
examples:
|
||||
application/json:
|
||||
dns_address: 127.0.0.1
|
||||
dns_port: 53
|
||||
querylog_enabled: true
|
||||
running: true
|
||||
upstream_dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
version: "v0.1"
|
||||
/querylog:
|
||||
get:
|
||||
tags:
|
||||
|
Loading…
Reference in New Issue
Block a user