mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Fix sanity checks overwriting custom policy parameters
This commit is contained in:
parent
e18d206248
commit
b733bb8ead
1 changed files with 1 additions and 1 deletions
|
@ -1721,7 +1721,7 @@ void Bond::setBondParameters(int policy, SharedPtr<Bond> templateBond, bool useT
|
|||
// Sanity check for policy
|
||||
|
||||
_defaultPolicy = (_defaultPolicy <= ZT_BOND_POLICY_NONE || _defaultPolicy > ZT_BOND_POLICY_BALANCE_AWARE) ? ZT_BOND_POLICY_NONE : _defaultPolicy;
|
||||
_policy = (policy <= ZT_BOND_POLICY_NONE || policy > ZT_BOND_POLICY_BALANCE_AWARE) ? ZT_BOND_POLICY_NONE : _defaultPolicy;
|
||||
_policy = (policy <= ZT_BOND_POLICY_NONE || policy > ZT_BOND_POLICY_BALANCE_AWARE) ? _defaultPolicy : policy;
|
||||
|
||||
// Check if non-leaf to prevent spamming infrastructure
|
||||
if (_peer) {
|
||||
|
|
Loading…
Add table
Reference in a new issue