From: Guus Sliepen Date: Sat, 8 Feb 2020 13:55:21 +0000 (+0100) Subject: Fall back to getifaddrs() to get an interface address if there is no default route. X-Git-Url: http://git.meshlink.io/?a=commitdiff_plain;h=3fe7713c4f9d16f192271bc4fa8a2ffda6bb28fd;hp=3fe7713c4f9d16f192271bc4fa8a2ffda6bb28fd;p=meshlink Fall back to getifaddrs() to get an interface address if there is no default route. When generating invitations, we try to find a suitable local interface address by faking an outgoing connection to the Internet. However, that doesn't work if there is no default route. In this case, fall back to using getifaddrs() if that function is available, and filter out any link-local and loopback addresses. ---