Skip to content

Commit 0dd88f9

Browse files
Merge pull request hestiacp#756 from Skamasle/patch-2
Fix bug 283 | Error: invalid mx_record format
2 parents 8b0c7b0 + aff5e90 commit 0dd88f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

func/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,10 @@ is_dns_record_format_valid() {
602602
is_ip_format_valid "$1"
603603
fi
604604
if [ "$rtype" = 'NS' ]; then
605-
is_domain_format_valid "$1" 'ns_record'
605+
is_domain_format_valid "${1::-1}" 'ns_record'
606606
fi
607607
if [ "$rtype" = 'MX' ]; then
608-
is_domain_format_valid "$1" 'mx_record'
608+
is_domain_format_valid "${1::-1}" 'mx_record'
609609
is_int_format_valid "$priority" 'priority_record'
610610
fi
611611

0 commit comments

Comments
 (0)