Skip to content

Commit

Permalink
pointer issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ddymko committed May 5, 2020
1 parent 1f13a64 commit 0edb56c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,10 @@ func (l *LoadBalancerHandler) Create(ctx context.Context, region int, label stri

// Check generic info struct
if genericInfo != nil {
if *genericInfo.SSLRedirect == true {
values.Add("config_ssl_redirect", "true")
if genericInfo.SSLRedirect != nil {
if strconv.FormatBool(*genericInfo.SSLRedirect) == "true" {
values.Add("config_ssl_redirect", "true")
}
}

if genericInfo.BalancingAlgorithm != "" {
Expand Down

0 comments on commit 0edb56c

Please sign in to comment.