From 5d554f1cef10e2ae1823a2bfd64545f330f6f3f5 Mon Sep 17 00:00:00 2001 From: Yannik Sembritzki Date: Wed, 1 Mar 2023 19:08:13 +0530 Subject: [PATCH] BUG: Compare zones list to ace zone name (#2096) (#2110) Co-authored-by: Yannik Sembritzki --- commands/previewPush.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/previewPush.go b/commands/previewPush.go index 1db00a92e..6eee2cac8 100644 --- a/commands/previewPush.go +++ b/commands/previewPush.go @@ -2,6 +2,7 @@ package commands import ( "fmt" + "golang.org/x/net/idna" "log" "os" "strings" @@ -147,7 +148,9 @@ DomainLoop: if err != nil { 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: Name: %v\n", domain.Name)