h2load: Don't DOS our server!

This commit is contained in:
Tatsuhiro Tsujikawa 2015-10-17 12:04:06 +09:00
parent 5594e3df25
commit 11cb4ea214
1 changed files with 7 additions and 0 deletions

View File

@ -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;