Commit 11cb4ea2 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

h2load: Don't DOS our server!

parent 5594e3df
......@@ -1918,6 +1918,13 @@ int main(int argc, char **argv) {
config.nv.push_back(std::move(cva));
}
// Don't DOS our server!
if (config.host == "nghttp2.org") {
std::cerr << "Using h2load against public server " << config.host
<< " should be prohibited." << std::endl;
exit(EXIT_FAILURE);
}
resolve_host();
std::cout << "starting benchmark..." << std::endl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment