summaryrefslogtreecommitdiff
path: root/node/SelfAwareness.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/SelfAwareness.hpp')
-rw-r--r--node/SelfAwareness.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/node/SelfAwareness.hpp b/node/SelfAwareness.hpp
index 93af34f4..6d0b9ebb 100644
--- a/node/SelfAwareness.hpp
+++ b/node/SelfAwareness.hpp
@@ -29,6 +29,7 @@
#define ZT_SELFAWARENESS_HPP
#include "InetAddress.hpp"
+#include "Mutex.hpp"
namespace ZeroTier {
@@ -47,10 +48,13 @@ public:
* Called when a trusted remote peer informs us of our external network address
*
* @param physicalAddress Physical address as reflected by any trusted peer
+ * @param trusted True if this peer is trusted
*/
- void iam(const InetAddress &physicalAddress);
+ void iam(const InetAddress &physicalAddress,bool trusted);
private:
+ const RuntimeEnvironment *RR;
+ Mutex _lock;
};
} // namespace ZeroTier