magic-wormhole / magic-wormhole.rs

Rust implementation of Magic Wormhole, with new features and enhancements
European Union Public License 1.2
722 stars 78 forks source link

Replace pnet dependency with get_if_addrs #121

Closed piegamesde closed 3 years ago

piegamesde commented 3 years ago

Pnet is tricky to get to compile on Windows, and replacement alternatives are not really hard to find. I chose get_if_addrs because it looks like "do one thing and do it well" to me and is cross-platform (the only other cross-platform one is pnet itself).

If this turns out to not work in the future, the only alternative I see is to use the nix crate on Linux and ipconfig on Windows.

Closes #115.