mirror of
https://github.com/moparisthebest/spdylay
synced 2024-12-22 07:38:52 -05:00
shrpx: Remove useless backend spdy version check
It is unnecessary because spdy version at this point is always valid.
This commit is contained in:
parent
a9f475fb88
commit
34e119fde2
@ -909,14 +909,6 @@ int main(int argc, char **argv)
|
|||||||
mod_config()->downstream_proto = PROTO_HTTP;
|
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()->client_mode && !get_config()->spdy_upstream_no_tls) {
|
||||||
if(!get_config()->private_key_file || !get_config()->cert_file) {
|
if(!get_config()->private_key_file || !get_config()->cert_file) {
|
||||||
print_usage(std::cerr);
|
print_usage(std::cerr);
|
||||||
|
Loading…
Reference in New Issue
Block a user