fix argv in examples

This commit is contained in:
Liu Dongmiao
2022-03-20 21:26:25 +08:00
parent 5519f6cfae
commit a1980c8419
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);