mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-11 14:40:32 +01:00
Ignore short domains like co.uk, com.au, etc
This commit is contained in:
@@ -56,6 +56,12 @@ else
|
||||
# Check subdomain
|
||||
sub=$(echo "$dom_alias" | cut -f1 -d . -s)
|
||||
dom=$(echo "$dom_alias" | sed -e "s/^$sub.//" )
|
||||
|
||||
# Ignore short domains like co.uk, com.au and so on
|
||||
if [ "${#dom}" -le '6' ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -e "$USER_DATA/dns/$dom.conf" ]; then
|
||||
$BIN/v-add-dns-domain \
|
||||
$user $dom $IP '' '' '' '' $restart > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user