mirror of https://github.com/k3s-io/k3s
Check for nil, not unspecified
parent
28b9ebed47
commit
950bc8401b
|
@ -624,7 +624,7 @@ func (lb *LoadBalancer) CreateTCPLoadBalancer(name, region string, externalIP ne
|
|||
PoolID: pool.ID,
|
||||
Persistence: persistence,
|
||||
}
|
||||
if !externalIP.IsUnspecified() {
|
||||
if externalIP != nil {
|
||||
createOpts.Address = externalIP.String()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue