Skip to content

Commit

Permalink
refactor: change function arg name from review
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbeaumont committed Apr 21, 2024
1 parent 992dd33 commit 522da6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/gatewayapi/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func irRouteDestinationName(route RouteContext, ruleIdx int) string {
return fmt.Sprintf("%srule/%d", irRoutePrefix(route), ruleIdx)
}

func irTLSConfigs(tlsSecrets []*v1.Secret, listenerHostname *gwapiv1.Hostname) *ir.TLSConfig {
func irTLSConfigs(tlsSecrets []*v1.Secret, sni *gwapiv1.Hostname) *ir.TLSConfig {
if len(tlsSecrets) == 0 {
return nil
}
Expand All @@ -388,8 +388,8 @@ func irTLSConfigs(tlsSecrets []*v1.Secret, listenerHostname *gwapiv1.Hostname) *
PrivateKey: tlsSecret.Data[v1.TLSPrivateKeyKey],
}
}
if listenerHostname != nil {
tlsListenerConfigs.Inspector.SNIs = []string{string(*listenerHostname)}
if sni != nil {
tlsListenerConfigs.Inspector.SNIs = []string{string(*sni)}
}
return tlsListenerConfigs
}
Expand Down

0 comments on commit 522da6a

Please sign in to comment.