Skip to content

Commit

Permalink
Define balancer settings defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr265 committed Jun 17, 2021
1 parent c352407 commit 3fc38a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/balancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ func HandleBalancerCreate(w http.ResponseWriter, r *http.Request) {

bal := data.Balancer{}
bal.Label = body.Label
bal.Settings.Hostname = "example.com"
bal.Settings.Port = 80
err = bal.Put()
if err != nil {
panic(err)
Expand Down

0 comments on commit 3fc38a3

Please sign in to comment.