summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-12-14 17:35:45 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-12-14 17:35:45 -0800
commit3b22ecc80cd0740e9a0c24cb0819749b412b4337 (patch)
treef6427e5ebc0f906c9c54fb9f6749557d403e78fc
parent53fe5760288194f483132f635a3e88dd4693061f (diff)
downloadinfinitytier-3b22ecc80cd0740e9a0c24cb0819749b412b4337.tar.gz
infinitytier-3b22ecc80cd0740e9a0c24cb0819749b412b4337.zip
Make hex device address in UPnP name the right length.
-rw-r--r--service/OneService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index ed60ed2d..6e4ba904 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -605,7 +605,7 @@ public:
_v4UpnpLocalAddress = InetAddress(0,mapperPort);
_v4UpnpUdpSocket = _phy.udpBind((const struct sockaddr *)&_v4UpnpLocalAddress,reinterpret_cast<void *>(&_v4UpnpLocalAddress),ZT_UDP_DESIRED_BUF_SIZE);
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);
break;
}