mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-24 13:50:16 +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