From f21aebd1cffe45d67e09ba12b27dc516d899a6ec Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Thu, 17 Jan 2019 19:29:54 +0300 Subject: [PATCH] /install/get_default_addresses -- make fields lowercase --- control.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/control.go b/control.go index 533e535f..f869a8c0 100644 --- a/control.go +++ b/control.go @@ -695,15 +695,13 @@ func handleSafeSearchStatus(w http.ResponseWriter, r *http.Request) { } func handleGetDefaultAddresses(w http.ResponseWriter, r *http.Request) { + type ipport struct { + IP string `json:"ip"` + Port int `json:"port"` + } data := struct { - Web struct { - IP string - Port int - } - DNS struct { - IP string - Port int - } + Web ipport `json:"web"` + DNS ipport `json:"dns"` }{} // TODO: replace mockup with actual data