From 3b16749c5495f5febbe6a28bebc5d0e8f2f76227 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Fri, 20 May 2022 19:05:07 -0400 Subject: [PATCH] Revert "android: use local addresses as opposed to prefix (#2081)" (#2307) This reverts commit 1b345778455e3d18f009cb1f381a00d6de5fd5c9. Signed-off-by: JP Simard --- third_party/android/ifaddrs-android.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/android/ifaddrs-android.h b/third_party/android/ifaddrs-android.h index 446d8d2bee..b4ac1cd4e3 100644 --- a/third_party/android/ifaddrs-android.h +++ b/third_party/android/ifaddrs-android.h @@ -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_LOCAL) { + if (rta->rta_type == IFA_ADDRESS) { int family = address->ifa_family; if (family == AF_INET || family == AF_INET6) { *result = new ifaddrs(*result);