mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-10 09:27:46 +08:00
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
This commit is contained in:
parent
cfb24dba77
commit
5d554f1cef
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue