/status -- add http_port
This commit is contained in:
parent
de08b53ae1
commit
b3f33b4b0b
|
@ -87,6 +87,7 @@ func httpUpdateConfigReloadDNSReturnOK(w http.ResponseWriter, r *http.Request) {
|
||||||
func handleStatus(w http.ResponseWriter, r *http.Request) {
|
func handleStatus(w http.ResponseWriter, r *http.Request) {
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"dns_address": config.BindHost,
|
"dns_address": config.BindHost,
|
||||||
|
"http_port": config.BindPort,
|
||||||
"dns_port": config.DNS.Port,
|
"dns_port": config.DNS.Port,
|
||||||
"protection_enabled": config.DNS.ProtectionEnabled,
|
"protection_enabled": config.DNS.ProtectionEnabled,
|
||||||
"querylog_enabled": config.DNS.QueryLogEnabled,
|
"querylog_enabled": config.DNS.QueryLogEnabled,
|
||||||
|
|
Loading…
Reference in New Issue