/install/get_default_addresses -- make fields lowercase

This commit is contained in:
Eugene Bujak 2019-01-17 19:29:54 +03:00
parent c36a7895ad
commit f21aebd1cf

View File

@ -695,15 +695,13 @@ func handleSafeSearchStatus(w http.ResponseWriter, r *http.Request) {
} }
func handleGetDefaultAddresses(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 { data := struct {
Web struct { Web ipport `json:"web"`
IP string DNS ipport `json:"dns"`
Port int
}
DNS struct {
IP string
Port int
}
}{} }{}
// TODO: replace mockup with actual data // TODO: replace mockup with actual data