From 8e1187a02b785e56d798660a9a292ca385e1f6aa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 11 Jun 2024 18:46:30 +0200 Subject: Adding upstream version 1.62.1. Signed-off-by: Daniel Baumann --- src/shrpx_live_check.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shrpx_live_check.cc') diff --git a/src/shrpx_live_check.cc b/src/shrpx_live_check.cc index 8e8d316..e59df5a 100644 --- a/src/shrpx_live_check.cc +++ b/src/shrpx_live_check.cc @@ -299,8 +299,8 @@ int LiveCheck::initiate_connection() { if (addr_->tls) { auto sni_name = addr_->sni.empty() ? StringRef{addr_->host} : StringRef{addr_->sni}; - if (!util::numeric_host(sni_name.c_str())) { - SSL_set_tlsext_host_name(conn_.tls.ssl, sni_name.c_str()); + if (!util::numeric_host(sni_name.data())) { + SSL_set_tlsext_host_name(conn_.tls.ssl, sni_name.data()); } auto session = tls::reuse_tls_session(addr_->tls_session_cache); @@ -411,7 +411,7 @@ int LiveCheck::tls_handshake() { switch (addr_->proto) { case Proto::HTTP1: - if (proto.empty() || proto == StringRef::from_lit("http/1.1")) { + if (proto.empty() || proto == "http/1.1"_sr) { break; } return -1; -- cgit v1.2.3