shrpx: Remove useless backend spdy version check

It is unnecessary because spdy version at this point is always valid.
This commit is contained in:
Tatsuhiro Tsujikawa 2013-03-29 22:16:50 +09:00
parent a9f475fb88
commit 34e119fde2
1 changed files with 0 additions and 8 deletions

View File

@ -909,14 +909,6 @@ int main(int argc, char **argv)
mod_config()->downstream_proto = PROTO_HTTP;
}
if(mod_config()->downstream_proto == PROTO_SPDY &&
mod_config()->spdy_downstream_no_tls &&
mod_config()->spdy_downstream_version == 0) {
LOG(FATAL) << "--backend-spdy-no-tls: Specify backend SPDY protocol using"
<< " --backend-spdy-proto";
exit(EXIT_FAILURE);
}
if(!get_config()->client_mode && !get_config()->spdy_upstream_no_tls) {
if(!get_config()->private_key_file || !get_config()->cert_file) {
print_usage(std::cerr);