allow user to specify arbitrary allowed IP networks in allowManaged

This commit is contained in:
Michał Zieliński 2017-01-22 23:02:34 +01:00
parent 9a475eeff9
commit 8f2a42d1ad
4 changed files with 60 additions and 9 deletions

View file

@ -20,6 +20,7 @@
#define ZT_ONESERVICE_HPP
#include <string>
#include <vector>
namespace ZeroTier {
@ -65,6 +66,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?
*/