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
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ impl ServerConnector for ServerConfig {
async fn get_tls_stream<S: AsyncRead + AsyncWrite + Unpin>(
xmpp_stream: XMPPStream<S>,
) -> 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 tls_stream = TlsConnector::from(NativeTlsConnector::builder().build().unwrap())
.connect(&domain, stream)