mirror of https://github.com/aredn/aredn.git
revert validate_hostname change
This commit is contained in:
parent
44ab46bc87
commit
ad8e3c0605
|
@ -851,7 +851,7 @@ sub validate_hostname
|
|||
$host =~ s/^\s+//;
|
||||
$host =~ s/\s+$//;
|
||||
return 0 if $host =~ /_/;
|
||||
return 1 if $host =~ /^[\w\-\.]+$/;
|
||||
return 1 if $host =~ /^[\w\-]+$/;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue