Merge pull request #25 from shellrow/dev

Bump version to 0.14.0
main
shellrow 2 years ago committed by GitHub
commit 5c71d490d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Cargo.toml
  2. 4
      src/interface/unix.rs

@ -1,6 +1,6 @@
[package]
name = "default-net"
version = "0.13.1"
version = "0.14.0"
authors = ["shellrow <shellrow@protonmail.com>"]
edition = "2021"
description = "Cross-platform library for network interface and gateway"

@ -4,8 +4,6 @@ use crate::gateway;
use crate::interface::InterfaceType;
use crate::ip::{Ipv4Net, Ipv6Net};
use crate::sys;
use crate::interface::InterfaceType;
use libc;
use std::ffi::{CStr, CString};
use std::mem::{self, MaybeUninit};
@ -316,7 +314,7 @@ fn unix_interfaces_inner(
addr = addr_ref.ifa_next;
}
unsafe {
libc::freeifaddrs(addrs);
freeifaddrs(addrs);
}
for iface in &mut ifaces {
let name = CString::new(iface.name.as_bytes()).unwrap();

Loading…
Cancel
Save