nghttpx: Fix crash with http2 backend
This commit is contained in:
parent
eb8649bf9b
commit
2faf9623ce
|
@ -331,9 +331,9 @@ int Http2Session::initiate_connection() {
|
||||||
conn_.set_ssl(ssl);
|
conn_.set_ssl(ssl);
|
||||||
}
|
}
|
||||||
|
|
||||||
StringRef sni_name = !get_config()->tls.backend_sni_name.empty()
|
auto sni_name = !get_config()->tls.backend_sni_name.empty()
|
||||||
? get_config()->tls.backend_sni_name
|
? StringRef(get_config()->tls.backend_sni_name)
|
||||||
: downstream_addr.host;
|
: StringRef(downstream_addr.host);
|
||||||
|
|
||||||
if (!util::numeric_host(sni_name.c_str())) {
|
if (!util::numeric_host(sni_name.c_str())) {
|
||||||
// TLS extensions: SNI. There is no documentation about the return
|
// TLS extensions: SNI. There is no documentation about the return
|
||||||
|
|
Loading…
Reference in New Issue