Skip to content

Commit

Permalink
android: use local addresses as opposed to prefix (#2081)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Conte Mac Donell <reflejo@gmail.com>
  • Loading branch information
Martín Conte Mac Donell authored Apr 21, 2022
1 parent 464cd31 commit 1b34577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/android/ifaddrs-android.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ inline int getifaddrs(ifaddrs** result) {
rtattr* rta = IFA_RTA(address);
size_t ifaPayloadLength = IFA_PAYLOAD(hdr);
while (RTA_OK(rta, ifaPayloadLength)) {
if (rta->rta_type == IFA_ADDRESS) {
if (rta->rta_type == IFA_LOCAL) {
int family = address->ifa_family;
if (family == AF_INET || family == AF_INET6) {
*result = new ifaddrs(*result);
Expand Down

0 comments on commit 1b34577

Please sign in to comment.