Minor fix to Windows local adapter address enumeration.

This commit is contained in:
Adam Ierymenko 2015-07-06 17:36:58 -07:00
parent 6da9d2d36f
commit 91fa643131

View File

@ -645,6 +645,7 @@ public:
case InetAddress::IP_SCOPE_SHARED:
case InetAddress::IP_SCOPE_GLOBAL:
ip.setPort(_port);
printf("found %s on %S\r\n",ip.toString().c_str(),a->FriendlyName);
_node->addLocalInterfaceAddress(reinterpret_cast<const struct sockaddr_storage *>(&ip),0,ZT1_LOCAL_INTERFACE_ADDRESS_TRUST_NORMAL,0);
break;
default: