summaryrefslogtreecommitdiff
path: root/service/OneService.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'service/OneService.hpp')
-rw-r--r--service/OneService.hpp35
1 files changed, 10 insertions, 25 deletions
diff --git a/service/OneService.hpp b/service/OneService.hpp
index cead381d..3390f2ac 100644
--- a/service/OneService.hpp
+++ b/service/OneService.hpp
@@ -20,23 +20,14 @@
#define ZT_ONESERVICE_HPP
#include <string>
+#include <vector>
+
+#include "../node/InetAddress.hpp"
namespace ZeroTier {
/**
* Local service for ZeroTier One as system VPN/NFV provider
- *
- * If built with ZT_ENABLE_NETWORK_CONTROLLER defined, this includes and
- * runs controller/SqliteNetworkController with a database called
- * controller.db in the specified home directory.
- *
- * If built with ZT_AUTO_UPDATE, an official ZeroTier update URL is
- * periodically checked and updates are automatically downloaded, verified
- * against a built-in list of update signing keys, and installed. This is
- * only supported for certain platforms.
- *
- * If built with ZT_ENABLE_CLUSTER, a 'cluster' file is checked and if
- * present is read to determine the identity of other cluster members.
*/
class OneService
{
@@ -78,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;
@@ -94,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
@@ -111,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();
@@ -142,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;