better host upstream support
This commit is contained in:
@ -87,6 +87,11 @@ func CreateHost() func(http.ResponseWriter, *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if newHost.UpstreamID > 0 {
|
||||
// nolint: errcheck, gosec
|
||||
newHost.Expand([]string{"upstream"})
|
||||
}
|
||||
|
||||
configureHost(newHost)
|
||||
|
||||
h.ResultResponseJSON(w, r, http.StatusOK, newHost)
|
||||
|
Reference in New Issue
Block a user