mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Fix indent in valid_hostname
This commit is contained in:
@@ -284,7 +284,7 @@ valid_fqdn() {
|
||||
valid_hostname() {
|
||||
local hostname=$1
|
||||
|
||||
[[ $hostname =~ ^[a-zA-Z0-9\-]+$ ]] && [[ $hostname != 'localhost' ]] && return 0 || return 1
|
||||
[[ $hostname =~ ^[a-zA-Z0-9\-]+$ ]] && [[ $hostname != 'localhost' ]] && return 0 || return 1
|
||||
}
|
||||
|
||||
valid_ip4() {
|
||||
|
||||
Reference in New Issue
Block a user