mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Merge pull request #756 from Skamasle/patch-2
Fix bug 283 | Error: invalid mx_record format
This commit is contained in:
commit
0dd88f9244
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue