diff --git a/src/peer/common.cc b/src/peer/common.cc index 5114b00..ecb6ad3 100644 --- a/src/peer/common.cc +++ b/src/peer/common.cc @@ -99,7 +99,8 @@ uint32_t UdpHolder::IP() { if (!this->ip) { try { for (const auto &iface : Poco::Net::NetworkInterface::list()) { - if (iface.supportsIPv4() && !iface.isLoopback() && !iface.isPointToPoint()) { + if (iface.supportsIPv4() && !iface.isLoopback() && !iface.isPointToPoint() && + iface.type() != iface.NI_TYPE_OTHER) { auto firstAddress = iface.firstAddress(Poco::Net::IPAddress::IPv4); memcpy(&this->ip, firstAddress.addr(), sizeof(this->ip)); this->ip = ntohl(this->ip);