mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
/install/get_default_addresses -- make fields lowercase
This commit is contained in:
parent
c36a7895ad
commit
f21aebd1cf
1 changed files with 6 additions and 8 deletions
14
control.go
14
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
|
||||
|
|
Loading…
Reference in a new issue