mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-26 17:03:43 +02:00
Make hex device address in UPnP name the right length.
This commit is contained in:
parent
53fe576028
commit
3b22ecc80c
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ public:
|
||||||
_v4UpnpLocalAddress = InetAddress(0,mapperPort);
|
_v4UpnpLocalAddress = InetAddress(0,mapperPort);
|
||||||
_v4UpnpUdpSocket = _phy.udpBind((const struct sockaddr *)&_v4UpnpLocalAddress,reinterpret_cast<void *>(&_v4UpnpLocalAddress),ZT_UDP_DESIRED_BUF_SIZE);
|
_v4UpnpUdpSocket = _phy.udpBind((const struct sockaddr *)&_v4UpnpLocalAddress,reinterpret_cast<void *>(&_v4UpnpLocalAddress),ZT_UDP_DESIRED_BUF_SIZE);
|
||||||
if (_v4UpnpUdpSocket) {
|
if (_v4UpnpUdpSocket) {
|
||||||
Utils::snprintf(uniqueName,sizeof(uniqueName),"ZeroTier/%.16llx",_node->address());
|
Utils::snprintf(uniqueName,sizeof(uniqueName),"ZeroTier/%.10llx",_node->address());
|
||||||
_portMapper = new PortMapper(mapperPort,uniqueName);
|
_portMapper = new PortMapper(mapperPort,uniqueName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue