Merge pull request #3566 from dokku/3075-wildcard-domains

Allow users to specify wildcard domains
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-20 22:22:44 -07:00
committed by GitHub
2 changed files with 6 additions and 1 deletions

View File

@@ -312,7 +312,7 @@ is_global_vhost_enabled() {
is_valid_hostname() {
declare desc="return 0 if argument is a valid hostname; else return 1"
local hostname_string="${1,,}"
local hostname_regex='^([a-z0-9\*-]+\.)*[a-z0-9\*-]+$'
local hostname_regex='^([a-z0-9\.\*-]+\.)*[a-z0-9\*-]+$'
if [[ $hostname_string =~ $hostname_regex ]]; then
return 0
else