summaryrefslogtreecommitdiff
path: root/node/PacketDecoder.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-04 09:27:56 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-09-04 09:27:56 -0400
commit37931d8589359580c05baef64b6752315dccbe66 (patch)
tree4937d8397fd85b8ee585a22727f7c1bc5a7fb52d /node/PacketDecoder.cpp
parentf3ad05347e55de2fd2a500464acde0979df9941f (diff)
downloadinfinitytier-37931d8589359580c05baef64b6752315dccbe66.tar.gz
infinitytier-37931d8589359580c05baef64b6752315dccbe66.zip
Multicast bandwidth accounting work in progress, and some config field changes and cleanup.
Diffstat (limited to 'node/PacketDecoder.cpp')
-rw-r--r--node/PacketDecoder.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp
index 18d8c4e2..9d8f0cd8 100644
--- a/node/PacketDecoder.cpp
+++ b/node/PacketDecoder.cpp
@@ -319,10 +319,8 @@ bool PacketDecoder::_doOK(const RuntimeEnvironment *_r,const SharedPtr<Peer> &pe
std::string dict((const char *)field(ZT_PROTO_VERB_NETWORK_CONFIG_REQUEST__OK__IDX_DICT,dictlen),dictlen);
if (dict.length()) {
Network::Config netconf(dict);
- if ((netconf.networkId() == nw->id())&&(netconf.peerAddress() == _r->identity.address())) { // sanity check
- LOG("got network configuration for network %.16llx from %s",(unsigned long long)nw->id(),source().toString().c_str());
- nw->setConfiguration(netconf);
- }
+ LOG("got network configuration for network %.16llx from %s",(unsigned long long)nw->id(),source().toString().c_str());
+ nw->setConfiguration(netconf);
}
}
} break;