From: Mark Wooding Date: Fri, 25 Apr 2014 08:49:26 +0000 (+0100) Subject: noip.c (get_local_ipaddrs): Rewrite to use getifaddrs(3). X-Git-Tag: 1.1.0~4 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/preload-hacks/commitdiff_plain/9f1396d9c6c68d36ade0895148a15c963d014473?hp=9f1396d9c6c68d36ade0895148a15c963d014473 noip.c (get_local_ipaddrs): Rewrite to use getifaddrs(3). This is a much better function to use because it actually gives us all of the addresses on each interface rather than just the first. Also, discard duplicate addresses, because they're more likely now. We should have done this already, but unaccountably neglected to. ---