mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-22 03:33:41 -04:00

On Mac OS X the ioctl(SIOCGIFCONF) call will return all IPv4, IPv6 and MAC addresses, so we have to filter only the ones that have sa_family equal to AF_INET. I also added the common interface names for Mac OS X (en0 and en1), to the getBestPublicIp() function. I refactored a bit the code so that addition and reordering are easier. Bugs: https://sourceforge.net/p/kiwix/bugs/658/
Description
Languages
C++
76.2%
JavaScript
16.9%
CSS
2.1%
HTML
1.9%
Python
1.6%
Other
1.2%