From 34b50d32c9bf75d5e3d26b66c5a95b19b4aaaeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 24 Oct 2023 18:41:18 +0200 Subject: [PATCH] tokio-xmpp: Update tls-rust feature for jid changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- tokio-xmpp/src/starttls.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio-xmpp/src/starttls.rs b/tokio-xmpp/src/starttls.rs index 7ec31516..77d0c8aa 100644 --- a/tokio-xmpp/src/starttls.rs +++ b/tokio-xmpp/src/starttls.rs @@ -41,7 +41,7 @@ async fn get_tls_stream( async fn get_tls_stream( xmpp_stream: XMPPStream, ) -> Result, Error> { - let domain = xmpp_stream.jid.domain().to_owned(); + let domain = format!("{}", xmpp_stream.jid.domain().to_owned()); let domain = ServerName::try_from(domain.as_str())?; let stream = xmpp_stream.into_inner(); let mut root_store = RootCertStore::empty();