From 9f107dbd4eefdb4e5427f15e844aefbd573a6465 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 18 Oct 2013 09:48:02 -0400 Subject: Work in progress on cleaning up netconf mess in node code... --- node/PacketDecoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'node/PacketDecoder.cpp') diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp index c4199732..82f3b6af 100644 --- a/node/PacketDecoder.cpp +++ b/node/PacketDecoder.cpp @@ -796,7 +796,8 @@ bool PacketDecoder::_doNETWORK_CONFIG_REQUEST(const RuntimeEnvironment *_r,const request["nwid"] = tmp; Utils::snprintf(tmp,sizeof(tmp),"%llx",(unsigned long long)packetId()); request["requestId"] = tmp; - request["from"] = _remoteAddress.toString(); + if (!hops()) + request["from"] = _remoteAddress.toString(); //TRACE("to netconf:\n%s",request.toString().c_str()); _r->netconfService->send(request); } else { -- cgit v1.2.3