A wrapper on getifaddrs
which retrieves host's
network interfaces.
Handy functions are provided such as local_ip
which retrieve the local IP
address based on the host system
use IpAddr;
use local_ip;
assert!;
You are able to iterate over a vector of tuples where the first element of the tuple is the name of the network interface and the second is the IP address.
use IpAddr;
use find_af_inet;
let ifas = find_af_inet.unwrap;
if let Some = ifas
.iter
.find
Release
In order to create a release you must push a Git tag as follows
Example
Tags must follow semver conventions Tags must be prefixed with a lowercase
v
letter.
Then push tags as follows:
Contributing
Every contribution to this project is welcome. Feel free to open a pull request, an issue or just by starting this project.
License
Distributed under the terms of both the MIT license and the Apache License (Version 2.0)