diff options
Diffstat (limited to 'src/unix/sunos.c')
-rw-r--r-- | src/unix/sunos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/sunos.c b/src/unix/sunos.c index 2dc02ae..a72c26a 100644 --- a/src/unix/sunos.c +++ b/src/unix/sunos.c @@ -747,7 +747,8 @@ static int uv__ifaddr_exclude(struct ifaddrs *ent) { return 1; if (ent->ifa_addr == NULL) return 1; - if (ent->ifa_addr->sa_family == PF_PACKET) + if (ent->ifa_addr->sa_family != AF_INET && + ent->ifa_addr->sa_family != AF_INET6) return 1; return 0; } @@ -756,7 +757,6 @@ int uv_interface_addresses(uv_interface_address_t** addresses, int* count) { uv_interface_address_t* address; struct ifaddrs* addrs; struct ifaddrs* ent; - int i; if (getifaddrs(&addrs)) return -errno; |