Skip to content

Commit 624ac72

Browse files
committed
fix: error when the zone is not detected
1 parent bf5e4c2 commit 624ac72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

providers/dns/allinkl/allinkl.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
145145
break
146146
}
147147

148+
if authZone == "" {
149+
return fmt.Errorf("allinkl: unable to find auth zone for '%s'", info.EffectiveFQDN)
150+
}
151+
148152
subDomain, err := dns01.ExtractSubDomain(info.EffectiveFQDN, authZone)
149153
if err != nil {
150154
return fmt.Errorf("allinkl: %w", err)

0 commit comments

Comments
 (0)