Skip to content

Commit a7e5e27

Browse files
committed
fix schannel alpn
1 parent b1846a7 commit a7e5e27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/imp/schannel.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ pub struct TlsConnector {
188188
accept_invalid_hostnames: bool,
189189
accept_invalid_certs: bool,
190190
disable_built_in_roots: bool,
191+
#[cfg(feature = "alpn")]
191192
alpn: Vec<String>,
192193
}
193194

@@ -208,6 +209,7 @@ impl TlsConnector {
208209
accept_invalid_hostnames: builder.accept_invalid_hostnames,
209210
accept_invalid_certs: builder.accept_invalid_certs,
210211
disable_built_in_roots: builder.disable_built_in_roots,
212+
#[cfg(feature = "alpn")]
211213
alpn: builder.alpn.clone(),
212214
})
213215
}

0 commit comments

Comments
 (0)