From 3b22ecc80cd0740e9a0c24cb0819749b412b4337 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 14 Dec 2015 17:35:45 -0800 Subject: Make hex device address in UPnP name the right length. --- service/OneService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(&_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; } -- cgit v1.2.3