insecure clients
Some checks failed
CI / checks (push) Failing after 1m51s

This commit is contained in:
Alex Emmet 2026-07-06 21:13:34 +02:00
commit 2126a142f4
4 changed files with 100 additions and 4 deletions

View file

@ -168,7 +168,7 @@ impl MTPClient {
*/
pub async fn connect(config: ClientConfig) -> Result<MTPConnection, CommunicationError> {
let (sender, receiver) =
mtp_transport::connect(&config.url, config.server_cert(), Policy::default()).await?;
mtp_transport::connect(&config.url, config.server_cert(), config.policy).await?;
let version_str = format!("{}", PROTOCOL_VERSION);
let mut ident = CommunicationValue::new(mtp_codec::CommunicationType::Identification)