simplify
This commit is contained in:
parent
09a04b60a9
commit
3cf4f4445a
3 changed files with 10 additions and 16 deletions
|
@ -187,12 +187,12 @@ namespace fw
|
|||
return false;
|
||||
else
|
||||
{
|
||||
return this->server->hasArg("source") ||
|
||||
this->server->hasArg("destination") ||
|
||||
this->server->hasArg("protocol") ||
|
||||
this->server->hasArg("port_from") ||
|
||||
this->server->hasArg("port_to") ||
|
||||
this->server->hasArg("target");
|
||||
for (uint8_t i = 0; i < firewall_fields_amount; i++)
|
||||
{
|
||||
if (!this->server->hasArg(firewall_fields[i]))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue