Skip to content

Commit

Permalink
Fix the SNI and HOST parsing properly (#10480)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwoop authored Sep 21, 2023
1 parent 84502fa commit f8c44e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/experimental/rate_limit/sni_limiter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ SniRateLimiter::initialize(int argc, const char *argv[])
// EOF
{nullptr, no_argument, nullptr, '\0'},
};
optind = 1;

TSDebug(PLUGIN_NAME, "Initializing an SNI Rate Limiter");

Expand Down
1 change: 1 addition & 0 deletions plugins/experimental/rate_limit/txn_limiter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ TxnRateLimiter::initialize(int argc, const char *argv[])
// EOF
{nullptr, no_argument, nullptr, '\0'},
};
optind = 1;

while (true) {
int opt = getopt_long(argc, const_cast<char *const *>(argv), "", longopt, nullptr);
Expand Down

0 comments on commit f8c44e9

Please sign in to comment.