1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-01 22:09:20 +02:00

Fix broken build with tls-native feature

This commit is contained in:
Jonas Schäfer 2024-04-20 21:23:12 +02:00
parent e53fa6c50c
commit b648b4668b

View File

@ -114,7 +114,7 @@ impl ServerConnector for ServerConfig {
async fn get_tls_stream<S: AsyncRead + AsyncWrite + Unpin>( async fn get_tls_stream<S: AsyncRead + AsyncWrite + Unpin>(
xmpp_stream: XMPPStream<S>, xmpp_stream: XMPPStream<S>,
) -> Result<TlsStream<S>, Error> { ) -> Result<TlsStream<S>, Error> {
let domain = xmpp_stream.jid.domain_str().to_owned(); let domain = xmpp_stream.jid.domain().to_owned();
let stream = xmpp_stream.into_inner(); let stream = xmpp_stream.into_inner();
let tls_stream = TlsConnector::from(NativeTlsConnector::builder().build().unwrap()) let tls_stream = TlsConnector::from(NativeTlsConnector::builder().build().unwrap())
.connect(&domain, stream) .connect(&domain, stream)