Skip to content

Commit 3fc38a3

Browse files
committed
Define balancer settings defaults
1 parent c352407 commit 3fc38a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/balancers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ func HandleBalancerCreate(w http.ResponseWriter, r *http.Request) {
5454

5555
bal := data.Balancer{}
5656
bal.Label = body.Label
57+
bal.Settings.Hostname = "example.com"
58+
bal.Settings.Port = 80
5759
err = bal.Put()
5860
if err != nil {
5961
panic(err)

0 commit comments

Comments
 (0)