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 0 | 0 | 0 | 0 |
0.6.11 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0Get the local IP address of your system by executing the local_ip function:
use local_ip_address::local_ip;
fn main() {
let my_local_ip = local_ip().unwrap();
println!("This is my local IP address: {:?}", my_local_ip);
}Retrieve all the available network interfaces from both, the AF_INET and
the AF_INET6 family by executing the list_afinet_netifas function:
use local_ip_address::list_afinet_netifas;
fn main() {
let network_interfaces = list_afinet_netifas().unwrap();
for (name, ip) in network_interfaces.iter() {
println!("{}:\t{:?}", name, ip);
}
}Underlying approach on retrieving network interfaces or the local IP address may differ based on the running operative system.
| OS | Approach |
|---|---|
| Linux | Establishes a Netlink socket interchange to retrieve network interfaces |
| BSD-based | Uses of getifaddrs to retrieve network interfaces |
| Windows | Consumes Win32 API's to retrieve the network adapters table |
Current supported platforms include:
Please note that we only test the BSD implementation of this on macOS and FreeBSD, under the assumption that other BSD-based systems will behave similarly. If you have any complications using this library on the other BSD-based, please create an issue.
In order to create a release you must push a Git tag as follows
git tag -a <version> -m <message>Example
git tag -a v0.1.0 -m "First release"Tags must follow semver conventions Tags must be prefixed with a lowercase
vletter.
Then push tags as follows:
git push origin main --follow-tagsEvery contribution to this project is welcome. Feel free to open a pull request, an issue or just by starting this project.
Distributed under the terms of both the MIT license and the Apache License (Version 2.0)