diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-27 13:49:43 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-27 13:49:43 -0700 |
| commit | 9f550292fe0ebc32e61eeada9e3a69970c874724 (patch) | |
| tree | 94c804b06a9a44e79b6e09373f38a9562cb60bc6 /node/Network.hpp | |
| parent | 5ba7ca91c03fc3ad9ac5c360e6156b91a208fb25 (diff) | |
| download | infinitytier-9f550292fe0ebc32e61eeada9e3a69970c874724.tar.gz infinitytier-9f550292fe0ebc32e61eeada9e3a69970c874724.zip | |
Simply network auth logic and always sent error on auth failure even for unknown networks to prevent forensics.
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index 128c4668..527d3048 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -212,21 +212,8 @@ public: /** * Determine whether this peer is permitted to communicate on this network - * - * This also performs certain periodic actions such as pushing renewed - * credentials to peers, so like the filters it is not side-effect-free. - * - * @param peer Peer to check - * @param verb Packet verb - * @param packetId Packet ID - * @return True if peer is allowed to communicate on this network - */ - bool gate(const SharedPtr<Peer> &peer,const Packet::Verb verb,const uint64_t packetId); - - /** - * Check whether this peer is allowed to provide multicast info for this network */ - bool gateMulticastGatherReply(const SharedPtr<Peer> &peer,const Packet::Verb verb,const uint64_t packetId); + bool gate(const SharedPtr<Peer> &peer); /** * Do periodic cleanup and housekeeping tasks |
