Merge pull request #756 from Skamasle/patch-2

Fix bug 283 | Error: invalid mx_record format
This commit is contained in:
Serghey Rodin 2016-09-07 14:15:24 +03:00 committed by GitHub
commit 0dd88f9244

View file

@ -602,10 +602,10 @@ is_dns_record_format_valid() {
is_ip_format_valid "$1" is_ip_format_valid "$1"
fi fi
if [ "$rtype" = 'NS' ]; then if [ "$rtype" = 'NS' ]; then
is_domain_format_valid "$1" 'ns_record' is_domain_format_valid "${1::-1}" 'ns_record'
fi fi
if [ "$rtype" = 'MX' ]; then if [ "$rtype" = 'MX' ]; then
is_domain_format_valid "$1" 'mx_record' is_domain_format_valid "${1::-1}" 'mx_record'
is_int_format_valid "$priority" 'priority_record' is_int_format_valid "$priority" 'priority_record'
fi fi