noip.c (get_local_ipaddrs): Rewrite to use getifaddrs(3).
authorMark Wooding <mdw@distorted.org.uk>
Fri, 25 Apr 2014 08:49:26 +0000 (09:49 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Apr 2014 08:57:49 +0000 (09:57 +0100)
commit9f1396d9c6c68d36ade0895148a15c963d014473
treee0c07c5dfc7d74e82a756eb5a35e60fa70bee65a
parentde6df72d8e430b6300da8fb4365a53757dd9f970
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.
noip.c