diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-18 09:48:02 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-18 09:48:02 -0400 |
| commit | 9f107dbd4eefdb4e5427f15e844aefbd573a6465 (patch) | |
| tree | 8a0f962e11581bcee6e5867073bbae6a0f3ad826 /node/PacketDecoder.cpp | |
| parent | e6eb65be0041bbf38be38219765bda0f92fae978 (diff) | |
| download | infinitytier-9f107dbd4eefdb4e5427f15e844aefbd573a6465.tar.gz infinitytier-9f107dbd4eefdb4e5427f15e844aefbd573a6465.zip | |
Work in progress on cleaning up netconf mess in node code...
Diffstat (limited to 'node/PacketDecoder.cpp')
| -rw-r--r-- | node/PacketDecoder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |
