messense / if-addrs

Retrieve IP addresses for all interfaces. POSIX & Windows
BSD 3-Clause "New" or "Revised" License
22 stars 15 forks source link

Convert s_addr to native endian bytes using library method instead of bitshifting #23

Closed mortenlj closed 1 year ago

mortenlj commented 1 year ago

I have tested this on ppc (big endian), arm64 (little endian) and amd64 (little endian), all with linux. I don't have windows or mac handy for testing. but I feel rather confident that this will work on all platforms.

Fixes #22

messense commented 1 year ago

Thanks, I’ll probably look into the unrelated CI failures tomorrow.

messense commented 1 year ago

Published in v0.9.0, thanks again!