mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-10 17:38:13 +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 (
|
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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue