Skip to content

Commit e0279d0

Browse files
committed
Merge pull request hestiacp#366 from ZonD80/master
Ivalid check removal, fix unability to add 4-level+ wildcard A records
2 parents 977d937 + 84d038c commit e0279d0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

func/main.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,6 @@ validate_format_common() {
783783
exit $E_INVALID
784784
fi
785785
if [[ $1 =~ \* ]]; then
786-
if [[ ! $1 =~ \*$ ]]; then
787-
echo "Error: * can be used only at the end"
788-
log_event "$E_INVALID" "$EVENT"
789-
exit $E_INVALID
790-
fi
791786
if [ "$(echo $1 | grep -o '*'|wc -l)" -gt 1 ]; then
792787
log_event "$E_INVALID" "$EVENT"
793788
echo "Error: * can be used only once"

0 commit comments

Comments
 (0)