mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Expose relay policy in node settings.
This commit is contained in:
parent
d159e5ca44
commit
97d915b06c
3 changed files with 18 additions and 7 deletions
|
@ -396,6 +396,16 @@ enum ZT_Event
|
|||
ZT_EVENT_TRACE = 5
|
||||
};
|
||||
|
||||
/**
|
||||
* Node relay policy
|
||||
*/
|
||||
enum ZT_RelayPolicy
|
||||
{
|
||||
ZT_RELAY_POLICY_NEVER = 0,
|
||||
ZT_RELAY_POLICY_TRUSTED = 1,
|
||||
ZT_RELAY_POLICY_ALWAYS = 2
|
||||
};
|
||||
|
||||
/**
|
||||
* Current node status
|
||||
*/
|
||||
|
@ -430,6 +440,11 @@ typedef struct
|
|||
*/
|
||||
const char *secretIdentity;
|
||||
|
||||
/**
|
||||
* Node relay policy
|
||||
*/
|
||||
ZT_RelayPolicy relayPolicy;
|
||||
|
||||
/**
|
||||
* True if some kind of connectivity appears available
|
||||
*/
|
||||
|
@ -791,13 +806,6 @@ enum ZT_VirtualNetworkConfigOperation
|
|||
ZT_VIRTUAL_NETWORK_CONFIG_OPERATION_DESTROY = 4
|
||||
};
|
||||
|
||||
enum ZT_RelayPolicy
|
||||
{
|
||||
ZT_RELAY_POLICY_NEVER = 0,
|
||||
ZT_RELAY_POLICY_TRUSTED = 1,
|
||||
ZT_RELAY_POLICY_ALWAYS = 2
|
||||
};
|
||||
|
||||
/**
|
||||
* What trust hierarchy role does this peer have?
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue