revert validate_hostname change

This commit is contained in:
Trevor Paskett - K7FPV 2016-01-08 18:05:31 -07:00
parent 44ab46bc87
commit ad8e3c0605
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ sub validate_hostname
$host =~ s/^\s+//; $host =~ s/^\s+//;
$host =~ s/\s+$//; $host =~ s/\s+$//;
return 0 if $host =~ /_/; return 0 if $host =~ /_/;
return 1 if $host =~ /^[\w\-\.]+$/; return 1 if $host =~ /^[\w\-]+$/;
return 0; return 0;
} }