From 2f0a0158f45ede9b946cb71b3cb38f4f7fa41e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Thu, 10 Sep 2026 07:30:27 -0400 Subject: [PATCH] fix(activex): drop unused iroh dependency ActiveX never supports the iroh P2P transport, so remove the iroh feature from its ironrdp-client dependency instead of enabling it unconditionally, and delete the now-unreachable Transport::Iroh match arms this leaves behind. --- crates/ironrdp-activex/Cargo.toml | 2 +- crates/ironrdp-activex/src/control.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/crates/ironrdp-activex/Cargo.toml b/crates/ironrdp-activex/Cargo.toml index 18f82c622..9e4a49cb0 100644 --- a/crates/ironrdp-activex/Cargo.toml +++ b/crates/ironrdp-activex/Cargo.toml @@ -21,7 +21,7 @@ doctest = false [target.'cfg(windows)'.dependencies] anyhow = "1" base64 = "0.22" -ironrdp-client = { path = "../ironrdp-client", version = "0.1", features = ["clipboard", "dvc-com-plugin", "gateway", "iroh", "location", "rdpdr", "rustls", "smartcard", "sound", "webauthn"] } +ironrdp-client = { path = "../ironrdp-client", version = "0.1", features = ["clipboard", "dvc-com-plugin", "gateway", "location", "rdpdr", "rustls", "smartcard", "sound", "webauthn"] } ironrdp-cliprdr = { path = "../ironrdp-cliprdr", version = "0.7" } ironrdp-cliprdr-format = { path = "../ironrdp-cliprdr-format", version = "0.2.0" } ironrdp-cliprdr-native = { path = "../ironrdp-cliprdr-native", version = "0.7" } diff --git a/crates/ironrdp-activex/src/control.rs b/crates/ironrdp-activex/src/control.rs index 00b9dc529..4c5d212b2 100644 --- a/crates/ironrdp-activex/src/control.rs +++ b/crates/ironrdp-activex/src/control.rs @@ -3457,8 +3457,6 @@ fn active_x_transport_from_client_transport( Transport::RDCleanPath(rdcleanpath) => Ok(ActiveXTransport::RDCleanPath(rdcleanpath.clone())), // Named-pipe RDP (e.g. Windows Sandbox) is agent/desktop-client only. Transport::NamedPipe { .. } => Err("Windows named-pipe transport is not supported by the ActiveX host"), - // Iroh P2P tunneling is agent/desktop-client only. - Transport::Iroh { .. } => Err("Iroh transport is not supported by the ActiveX host"), } } @@ -11245,10 +11243,6 @@ impl Control { Transport::NamedPipe { .. } => { unreachable!("NamedPipe must fail RPC connect before compatibility settings") } - // Rejected by `active_x_transport_from_client_transport` before settings apply. - Transport::Iroh { .. } => { - unreachable!("Iroh must fail RPC connect before compatibility settings") - } } }