--- ./lib/socket/interfaces.c.orig 2015-09-09 15:50:38.827459000 +0930 +++ ./lib/socket/interfaces.c 2015-09-09 15:51:12.878779000 +0930 @@ -150,6 +150,9 @@ if (!(ifptr->ifa_flags & IFF_UP)) { continue; } + if (ifptr->ifa_addr->sa_family!=AF_INET && ifptr->ifa_addr->sa_family!=AF_INET6) { + continue; + } count += 1; } @@ -171,6 +174,11 @@ continue; } + /* Check its actually an IP interface */ + if (ifptr->ifa_addr->sa_family!=AF_INET && ifptr->ifa_addr->sa_family!=AF_INET6) { + continue; + } + memset(&ifaces[total], '\0', sizeof(ifaces[total])); copy_size = sizeof(struct sockaddr_in);