Browse Source

Fix argument check in v-change-firewall-rule

Kristan Kenney 5 years ago
parent
commit
e338aff235
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-change-firewall-rule

+ 1 - 1
bin/v-change-firewall-rule

@@ -44,7 +44,7 @@ sort_fw_rules() {
 #                    Verifications                         #
 #----------------------------------------------------------#
 
-check_args '5' "$#" 'RULE ACTION IP  PORT [PROTOCOL] [COMMENT]'
+check_args '4' "$#" 'RULE ACTION IP PORT [PROTOCOL] [COMMENT]'
 is_format_valid 'rule' 'action' 'protocol' 'port_ext'
 if [ ! -z "$comment" ]; then
     is_format_valid 'comment'