Skip to content

Commit f3d5f8c

Browse files
committed
Remove "proxyProtocolEnabledDefault" because it was always false.
This variable was always false.
1 parent 14b390d commit f3d5f8c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

hcloud/load_balancers.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type LoadBalancerOps interface {
3232
type loadBalancers struct {
3333
lbOps LoadBalancerOps
3434
ipv6EnabledDefault bool
35-
proxyProtocolEnabledDefault bool
3635
privateIngressEnabledDefault bool
3736
}
3837

@@ -280,7 +279,7 @@ func (l *loadBalancers) getProxyProtocolEnabled(svc *corev1.Service) (bool, erro
280279
return enable, nil
281280
}
282281
if errors.Is(err, annotation.ErrNotSet) {
283-
return l.proxyProtocolEnabledDefault, nil
282+
return false, nil
284283
}
285284
return false, err
286285
}

0 commit comments

Comments
 (0)