mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-21 04:10:20 +00:00
commit
1f523cbe69
1 changed files with 1 additions and 2 deletions
|
@ -389,8 +389,7 @@ function valid_domain()
|
||||||
local domain=$1
|
local domain=$1
|
||||||
local stat=1
|
local stat=1
|
||||||
|
|
||||||
|
if [[ $domain =~ ^(([a-zA-Z0-9]{1,63}|([a-zA-Z0-9]{1,60}[-a-zA-Z0-9()]{0,2}[a-zA-Z0-9]{1,60}))\.){1,6}([a-zA-Z]{2,})$ ]]; then
|
||||||
if [[ $domain =~ ^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}\.[a-zA-Z]{2,}$ ]]; then
|
|
||||||
stat=$?
|
stat=$?
|
||||||
fi
|
fi
|
||||||
return $stat
|
return $stat
|
||||||
|
|
Loading…
Reference in a new issue