Skip to content

Commit

Permalink
fix:[#377] allow digits and dashes in hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
jardon committed Mar 7, 2025
1 parent 9f50537 commit 452157d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vanilla_first_setup/views/hostname.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __validate_hostname(self, hostname):
if len(hostname) > 64:
return False

lower_ascii = re.compile(r"[a-z]+$")
lower_ascii = re.compile(r"[a-z0-9-]+$")

dot_parts = hostname.split(".")
for dot_part in dot_parts:
Expand Down

0 comments on commit 452157d

Please sign in to comment.