Merge pull request #2707 from liudongmiao/v3-example

fix argv in examples
This commit is contained in:
martinhsv 2022-08-30 16:47:28 -04:00 committed by GitHub
commit b0b459d3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ int main(int argc, char **argv) {
return -1;
}
char *rule = *(argv++);
char *rule = *(++argv);
std::string rules(rule);
ReadingLogsViaRuleMessage rlvrm(request_header, request_uri, request_body,
response_headers, response_body, ip, rules);

View File

@ -133,7 +133,7 @@ int main(int argc, char **argv) {
std::cout << std::endl << std::endl;
return -1;
}
char *rule = *(argv++);
char *rule = *(++argv);
std::string rules_arg(rule);
/**