From bbabf661132f8cc29769ff2d2949a1acee1101f3 Mon Sep 17 00:00:00 2001 From: Yannik Sembritzki Date: Wed, 1 Feb 2023 11:12:54 +0800 Subject: [PATCH] HOSTINGDE: Fix dnssec error resulting from non-go-conformant comparison of three values (#2036) Co-authored-by: Yannik Sembritzki Co-authored-by: Tom Limoncelli --- providers/hostingde/hostingdeProvider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/hostingde/hostingdeProvider.go b/providers/hostingde/hostingdeProvider.go index 5c721636b..aecee1ae2 100644 --- a/providers/hostingde/hostingdeProvider.go +++ b/providers/hostingde/hostingdeProvider.go @@ -159,7 +159,7 @@ func (hp *hostingdeProvider) GetDomainCorrections(dc *models.DomainConfig) ([]*m var DnsSecOptions *dnsSecOptions = nil // ensure that publishKsk is set for domains with AutoDNSSec - if existingAutoDNSSecEnabled == desiredAutoDNSSecEnabled == true { + if existingAutoDNSSecEnabled && desiredAutoDNSSecEnabled { CurrentDnsSecOptions, err := hp.getDNSSECOptions(zone.ZoneConfig.ID) if err != nil { return nil, err