Explorar el Código

Merge pull request #366 from ZonD80/master

Ivalid check removal, fix unability to add 4-level+ wildcard A records
Serghey Rodin hace 10 años
padre
commit
e0279d0ba4
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      func/main.sh

+ 0 - 5
func/main.sh

@@ -783,11 +783,6 @@ validate_format_common() {
         exit $E_INVALID
     fi
     if [[ $1 =~ \* ]]; then
-        if [[ ! $1 =~ \*$ ]]; then
-            echo "Error: * can be used only at the end"
-            log_event "$E_INVALID" "$EVENT"
-            exit $E_INVALID
-        fi
         if [ "$(echo $1 | grep -o '*'|wc -l)" -gt 1 ]; then
             log_event "$E_INVALID" "$EVENT"
             echo "Error: * can be used only once"