mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.org>
This commit is contained in:
committed by
GitHub
parent
cfb24dba77
commit
5d554f1cef
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user