8000 GitHub - youngifif/ipconfig2-rs: better ipconfig for windows, with cleaner code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

youngifif/ipconfig2-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ipconfig, with cleaner code

The original repo has done an great job in providing a user-friendly api to get all the adapters on windows, but it uses build.rs and bindgen, which can be simply avoided by adding some features in windows-sys. So i just refactor the original code.

Examples

// Print the ip addresses and dns servers of all adapters:
for adapter in ipconfig::get_adapters()? {
    println!("Ip addresses: {:#?}", adapter.ip
5F4B
_addresses());
    println!("Dns servers: {:#?}", adapter.dns_servers());
}

TODOs

  • add some apis to manage fwpm

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

About

better ipconfig for windows, with cleaner code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0