Skip to content

Windows support#79

Merged
FlorianUekermann merged 1 commit intov0from
fix-windows
Feb 18, 2026
Merged

Windows support#79
FlorianUekermann merged 1 commit intov0from
fix-windows

Conversation

@FlorianUekermann
Copy link
Contributor

No description provided.

@FlorianUekermann FlorianUekermann changed the title Fix windows Windows support Feb 14, 2026
Comment on lines +54 to +55
#[cfg(not(target_os = "windows"))] network_interface: Option<&str>,
#[cfg(target_os = "windows")] network_interface: Option<std::net::IpAddr>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A function argument changing type is pretty nasty. But defining a trait seems like overkill. The other option is moving this to a method but I get that we want to strongly encourage callers to set it. I think this is fine for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it does not look great, but it's the only solution I can think of that forces the caller to use this correctly. I don't see how a trait would even work for this.

@FlorianUekermann FlorianUekermann merged commit d8b8d32 into v0 Feb 18, 2026
1 check passed
@FlorianUekermann FlorianUekermann deleted the fix-windows branch February 18, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants