Skip to content

Commit

Permalink
Set server weight to 1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hjr265 committed Jun 17, 2021
1 parent 11b335f commit c352407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func HandleServerCreate(w http.ResponseWriter, r *http.Request) {
srv.BalancerId = bal.Id
srv.Label = body.Label
srv.Settings.Address = body.Settings.Address
srv.Settings.Weight = 1
err = srv.Put()
if err != nil {
panic(err)
Expand Down

0 comments on commit c352407

Please sign in to comment.