diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-05 14:05:50 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-08-05 14:05:50 -0700 |
commit | 8a804b52571d28ce53bc4e75300794332357409c (patch) | |
tree | 0fe4c8c44ae12a61192e301aa0b51a02d8b4883e /node/Peer.cpp | |
parent | e3c5ada3a70f71fe117319cd335a4462387c744d (diff) | |
download | infinitytier-8a804b52571d28ce53bc4e75300794332357409c.tar.gz infinitytier-8a804b52571d28ce53bc4e75300794332357409c.zip |
(1) Disable firewall openers (its easy to re-enable), (2) Do some prep work for making supernode topology hot-updatable.
Diffstat (limited to 'node/Peer.cpp')
-rw-r--r-- | node/Peer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index e61631e2..b10cc1f2 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -25,6 +25,7 @@ * LLC. Start here: http://www.zerotier.com/ */ +#include "Constants.hpp" #include "Peer.hpp" #include "Switch.hpp" #include "AntiRecursion.hpp" @@ -180,6 +181,7 @@ Path::Type Peer::send(const RuntimeEnvironment *_r,const void *data,unsigned int return Path::PATH_TYPE_NULL; } +#ifdef ZT_FIREWALL_OPENER_DELAY bool Peer::sendFirewallOpener(const RuntimeEnvironment *_r,uint64_t now) { bool sent = false; @@ -194,6 +196,7 @@ bool Peer::sendFirewallOpener(const RuntimeEnvironment *_r,uint64_t now) return sent; } +#endif bool Peer::sendPing(const RuntimeEnvironment *_r,uint64_t now) { |