Skip to content

Commit

Permalink
Revert "android: use local addresses as opposed to prefix (#2081)" (#…
Browse files Browse the repository at this point in the history
…2307)

This reverts commit 1b34577.

Signed-off-by: JP Simard <jp@jpsim.com>
  • Loading branch information
jpsim authored May 20, 2022
1 parent 38d4c0b commit 3b16749
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_LOCAL) {
if (rta->rta_type == IFA_ADDRESS) {
int family = address->ifa_family;
if (family == AF_INET || family == AF_INET6) {
*result = new ifaddrs(*result);
Expand Down

0 comments on commit 3b16749

Please sign in to comment.