summaryrefslogtreecommitdiff
path: root/node/IncomingPacket.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-17 17:37:37 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-17 17:37:37 -0700
commitfaa9a06bf5302b246805ead12690b38c3036d802 (patch)
treeff14da1cb17502c1aad359a8a24e45c9924518c5 /node/IncomingPacket.cpp
parent1254dece5b885d3f396c8c44b659949070694443 (diff)
downloadinfinitytier-faa9a06bf5302b246805ead12690b38c3036d802.tar.gz
infinitytier-faa9a06bf5302b246805ead12690b38c3036d802.zip
Controller fixes...
Diffstat (limited to 'node/IncomingPacket.cpp')
-rw-r--r--node/IncomingPacket.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/node/IncomingPacket.cpp b/node/IncomingPacket.cpp
index 5c9e80f8..e4f09106 100644
--- a/node/IncomingPacket.cpp
+++ b/node/IncomingPacket.cpp
@@ -804,8 +804,12 @@ bool IncomingPacket::_doNETWORK_CONFIG_REQUEST(const RuntimeEnvironment *RR,cons
outp.armor(peer->key(),true);
RR->node->putPacket(_localAddress,_remoteAddress,outp.data(),outp.size());
}
+ } catch (std::exception &exc) {
+ fprintf(stderr,"WARNING: network config request failed with exception: %s" ZT_EOL_S,exc.what());
+ TRACE("dropped NETWORK_CONFIG_REQUEST from %s(%s): %s",source().toString().c_str(),_remoteAddress.toString().c_str(),exc.what());
} catch ( ... ) {
- TRACE("dropped NETWORK_CONFIG_REQUEST from %s(%s): unexpected exception",source().toString().c_str(),_remoteAddress.toString().c_str());
+ fprintf(stderr,"WARNING: network config request failed with exception: unknown exception" ZT_EOL_S);
+ TRACE("dropped NETWORK_CONFIG_REQUEST from %s(%s): unknown exception",source().toString().c_str(),_remoteAddress.toString().c_str());
}
return true;
}