fixed hostname regex

This commit is contained in:
2016-02-22 09:22:56 -05:00
parent 1a0768b779
commit 5c54c53911
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ sub _validateOrDie {
die "No domain provided"
unless $dom;
die "Invalid domain name (must end in a dot)"
unless ($dom =~ /^[a-zA-Z0-9\.]+\.$/);
unless ($dom =~ /^[a-zA-Z0-9\.\-\_]+\.$/);
}
sub _lookupOrDie {