summaryrefslogtreecommitdiff
path: root/service/OneService.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'service/OneService.hpp')
-rw-r--r--service/OneService.hpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/service/OneService.hpp b/service/OneService.hpp
index 72ff7d84..3390f2ac 100644
--- a/service/OneService.hpp
+++ b/service/OneService.hpp
@@ -20,6 +20,9 @@
#define ZT_ONESERVICE_HPP
#include <string>
+#include <vector>
+
+#include "../node/InetAddress.hpp"
namespace ZeroTier {
@@ -66,6 +69,12 @@ public:
bool allowManaged;
/**
+ * Whitelist of addresses that can be configured by this network.
+ * If empty and allowManaged is true, allow all private/pseudoprivate addresses.
+ */
+ std::vector<InetAddress> allowManagedWhitelist;
+
+ /**
* Allow configuration of IPs and routes within global (Internet) IP space?
*/
bool allowGlobal;
@@ -82,11 +91,6 @@ public:
static std::string platformDefaultHomePath();
/**
- * @return Auto-update URL or empty string if auto-updates unsupported or not enabled
- */
- static std::string autoUpdateUrl();
-
- /**
* Create a new instance of the service
*
* Once created, you must call the run() method to actually start
@@ -99,9 +103,7 @@ public:
* @param hp Home path
* @param port TCP and UDP port for packets and HTTP control (if 0, pick random port)
*/
- static OneService *newInstance(
- const char *hp,
- unsigned int port);
+ static OneService *newInstance(const char *hp,unsigned int port);
virtual ~OneService();
@@ -130,11 +132,6 @@ public:
virtual std::string portDeviceName(uint64_t nwid) const = 0;
/**
- * @return True if TCP fallback is currently active
- */
- virtual bool tcpFallbackActive() const = 0;
-
- /**
* Terminate background service (can be called from other threads)
*/
virtual void terminate() = 0;