Просмотр исходного кода

Merge pull request #4376 from sahsanu/Fix-adding-TLSA-records

Fix v-add-dns-record when adding TLSA records
Jaap Marcus 1 год назад
Родитель
Сommit
403225ff83
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-add-dns-record

+ 1 - 1
bin/v-add-dns-record

@@ -71,7 +71,7 @@ fi
 if [ "$rtype" != "CAA" ]; then
 	dvalue=${dvalue//\"/}
 	# Add support for DS key
-	if [ "$rtype" != "DNSKEY" ] && [ "$rtype" != "DS" ]; then
+	if [ "$rtype" != "DNSKEY" ] && [ "$rtype" != "DS" ] && [ "$rtype" != "TLSA" ]; then
 		if [ "$rtype" != 'SRV' ] && [[ "$dvalue" =~ [\;[:space:]] ]]; then
 			dvalue='"'"$dvalue"'"'
 		fi