1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Merge branch 'idna' of github.com:octodns/octodns into idna

This commit is contained in:
Ross McFarland
2022-08-09 07:58:31 -07:00

View File

@@ -22,7 +22,7 @@ def idna_encode(name):
def idna_decode(name):
pieces = name.lower().split('.')
if any([p.startswith('xn--') for p in pieces]):
if any(p.startswith('xn--') for p in pieces):
# it's idna
if name.startswith('*'):
# idna.decode doesn't like the *