Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade nix to 0.28.0 #28

Merged
merged 1 commit into from
Feb 25, 2024
Merged

upgrade nix to 0.28.0 #28

merged 1 commit into from
Feb 25, 2024

Conversation

selfisekai
Copy link
Contributor

this fixes builds on s390x+musl

@SamuelYvon SamuelYvon self-requested a review February 25, 2024 19:20
src/linux.rs Outdated
@@ -73,7 +72,7 @@ pub fn linux_ifaddresses(if_name: &str) -> Result<IfAddrs, Box<dyn std::error::E
if let Some(inet_addr) = address.as_sockaddr_in() {
add_to_types_mat(
AF_INET,
&ip_to_string(inet_addr.ip()),
&inet_addr.ip(),
Copy link
Owner

Choose a reason for hiding this comment

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

This breaks the address display. Please revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the returned value is not u32 anymore starting nix 0.28.0, it's core::net::Ipv4Addr

Copy link
Owner

Choose a reason for hiding this comment

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

Yep, just realized.

this fixes builds on s390x+musl
@SamuelYvon SamuelYvon merged commit c0f7b84 into SamuelYvon:dev Feb 25, 2024
19 checks passed
@SamuelYvon
Copy link
Owner

Thanks for the contribution 👍🏼

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