From 8fadf4b5bc430bbf766fab72345cc0b97c3d9665 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Wed, 29 Jan 2020 10:26:30 -0800 Subject: [PATCH] Removed code that was supposed to be removed --- meshcore/agentcore.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/meshcore/agentcore.c b/meshcore/agentcore.c index 1e5fe68..31d6677 100644 --- a/meshcore/agentcore.c +++ b/meshcore/agentcore.c @@ -2443,16 +2443,6 @@ void MeshServer_SendAgentInfo(MeshAgentHostContainer* agent, ILibWebClient_State } } - if ((info->hostnameLen = htons(ILibSimpleDataStore_Get(agent->masterDb, "agentName", info->hostname, sizeof(ILibScratchPad2) - sizeof(info)))) == 0) - { - info->hostnameLen = htons(hostnamelen); - memcpy_s(info->hostname, sizeof(ILibScratchPad2) - sizeof(MeshCommand_BinaryPacket_AuthInfo), agent->hostname, hostnamelen); - } - else - { - hostnamelen = ntohs(info->hostnameLen) - 1; - } - // Send mesh agent information to the server ILibWebClient_WebSocket_Send(WebStateObject, ILibWebClient_WebSocket_DataType_BINARY, (char*)info, sizeof(MeshCommand_BinaryPacket_AuthInfo) + hostnamelen, ILibAsyncSocket_MemoryOwnership_USER, ILibWebClient_WebSocket_FragmentFlag_Complete); agent->retryTime = 0;