fixed hostname regex
This commit is contained in:
@ -8,7 +8,7 @@ use Regexp::Common qw/net/;
|
||||
my $host = shift || die "No vhost provided";
|
||||
|
||||
die "Hostname must end in a dot"
|
||||
unless ($host =~ /^[a-zA-Z0-9\.]+\.$/);
|
||||
unless ($host =~ /^[a-zA-Z0-9\-\_\.]+\.$/);
|
||||
|
||||
my $ddns = Martnet::DDNS->new();
|
||||
$ddns->delvhost($host);
|
||||
|
||||
Reference in New Issue
Block a user