mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-16 02:18:28 -07:00
/install/get_default_addresses -- make fields lowercase
This commit is contained in:
parent
c36a7895ad
commit
f21aebd1cf
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) {
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user