Kaynağa Gözat

And for v-change-dns-record

Jaap Marcus 3 yıl önce
ebeveyn
işleme
d79341b62a
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      bin/v-change-dns-record

+ 4 - 0
bin/v-change-dns-record

@@ -58,6 +58,10 @@ check_hestia_demo_mode
 #                       Action                             #
 #                       Action                             #
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 
 
+if [ $record = "@" ] && [ $rtype = "CNAME" ]; then
+    check_result $E_INVALID "CNAME on root is not allowed"
+fi
+
 # Make sure the variable for the optional parameter TTL is empty before parsing
 # Make sure the variable for the optional parameter TTL is empty before parsing
 # We depend on that later on
 # We depend on that later on
 unset TTL
 unset TTL