Skip to content

Commit 1147156

Browse files
committed
Set additional parameters for SSL backends
1 parent 1f80c4e commit 1147156

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/common/src/backend.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ pub fn ensure_origin_backend(
4242
.first_byte_timeout(Duration::from_secs(15))
4343
.between_bytes_timeout(Duration::from_secs(10));
4444
if scheme.eq_ignore_ascii_case("https") {
45-
builder = builder.enable_ssl();
45+
builder = builder
46+
.enable_ssl()
47+
.sni_hostname(host)
48+
.check_certificate(host);
49+
log::info!("enable ssl for backend: {}", backend_name);
4650
}
4751

4852
match builder.finish() {

0 commit comments

Comments
 (0)