Skip to content

Commit 54e0a64

Browse files
davidv1992rnijveld
authored andcommitted
[MANAGEMENT] allow dash in server names.
1 parent 3436502 commit 54e0a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nts-pool-management/src/models/time_source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl TryFrom<NewTimeSourceForm> for NewTimeSource {
7878
|| !form
7979
.hostname
8080
.chars()
81-
.all(|c| matches!(c, '0'..='9' | '.' | 'a'..='z' | 'A'..='Z'))
81+
.all(|c| matches!(c, '0'..='9' | '.' | '-' | 'a'..='z' | 'A'..='Z'))
8282
{
8383
return Err(eyre::eyre!("Invalid domain name").into());
8484
}

0 commit comments

Comments
 (0)