Skip to content

Commit 734a6f1

Browse files
CopilotCBenoit
andcommitted
Fix whoami 2.0 API compatibility issues
Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>
1 parent 553ff31 commit 734a6f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ironrdp-client/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,14 @@ impl Config {
442442
.map_or(0, |version| version.major * 100 + version.minor * 10 + version.patch)
443443
.pipe(u32::try_from)
444444
.context("cargo package version")?,
445-
client_name: whoami::fallible::hostname().unwrap_or_else(|_| "ironrdp".to_owned()),
445+
client_name: whoami::hostname().unwrap_or_else(|_| "ironrdp".to_owned()),
446446
// NOTE: hardcode this value like in freerdp
447447
// https://github.com/FreeRDP/FreeRDP/blob/4e24b966c86fdf494a782f0dfcfc43a057a2ea60/libfreerdp/core/settings.c#LL49C34-L49C70
448448
client_dir: "C:\\Windows\\System32\\mstscax.dll".to_owned(),
449449
platform: match whoami::platform() {
450450
whoami::Platform::Windows => MajorPlatformType::WINDOWS,
451451
whoami::Platform::Linux => MajorPlatformType::UNIX,
452-
whoami::Platform::MacOS => MajorPlatformType::MACINTOSH,
452+
whoami::Platform::Mac => MajorPlatformType::MACINTOSH,
453453
whoami::Platform::Ios => MajorPlatformType::IOS,
454454
whoami::Platform::Android => MajorPlatformType::ANDROID,
455455
_ => MajorPlatformType::UNSPECIFIED,

0 commit comments

Comments
 (0)