BUG: Compare zones list to ace zone name (#2096) (#2110)

Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
This commit is contained in:
Yannik Sembritzki 2023-03-01 19:08:13 +05:30 committed by GitHub
parent cfb24dba77
commit 5d554f1cef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ package commands
import ( import (
"fmt" "fmt"
"golang.org/x/net/idna"
"log" "log"
"os" "os"
"strings" "strings"
@ -147,7 +148,9 @@ DomainLoop:
if err != nil { if err != nil {
return err return err
} }
if !slices.Contains(zones, domain.Name) { aceZoneName, _ := idna.ToASCII(domain.Name)
if !slices.Contains(zones, aceZoneName) {
out.Warnf("DEBUG: zones: %v\n", zones) out.Warnf("DEBUG: zones: %v\n", zones)
out.Warnf("DEBUG: Name: %v\n", domain.Name) out.Warnf("DEBUG: Name: %v\n", domain.Name)