/status -- add http_port

This commit is contained in:
Eugene Bujak 2019-02-20 12:24:56 +03:00
parent de08b53ae1
commit b3f33b4b0b
1 changed files with 1 additions and 0 deletions

View File

@ -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,