Skip to content

Commit 31b0a2b

Browse files
committed
BUGFIX: allow underscores in SRV host
1 parent 714dbd2 commit 31b0a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domainconnectzone/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ def is_valid_host_srv(input):
8888
if input == "@":
8989
return True # APEX is allowed as a name in SRV
9090
allowed = re.compile("(?!-)[A-Z\d-]{1,63}(?<!-)$", re.IGNORECASE)
91-
return all(allowed.match(x) for x in input.split("."))
91+
return all(allowed.match(x.lstrip('_')) for x in input.split(".")) #allows for leading underscores

0 commit comments

Comments
 (0)