Skip to content

Commit 613913d

Browse files
committed
Changed code to use strings.EqualFold() for case-insensitive comparison.
1 parent c908a52 commit 613913d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pgbackrest/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func serverConfig(cluster *v1beta1.PostgresCluster) iniSectionSet {
472472
// going to workaround the issue by allowing the user to add an annotation to
473473
// enable IPv6. We will check for that annotation here and override the
474474
// "tls-server-address" setting accordingly.
475-
if strings.ToLower(cluster.Annotations[naming.PGBackRestIPVersion]) == "ipv6" {
475+
if strings.EqualFold(cluster.Annotations[naming.PGBackRestIPVersion], "ipv6") {
476476
global.Set("tls-server-address", "::")
477477
}
478478

0 commit comments

Comments
 (0)