mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 06:17:48 +00:00
Auto-authorize new members on public networks properly.
This commit is contained in:
parent
c8554504f3
commit
bf2b9e3692
@ -1287,7 +1287,8 @@ void EmbeddedNetworkController::_request(
|
||||
authorizedBy = "memberIsAuthorized";
|
||||
} else if (!_jB(network["private"],true)) {
|
||||
authorizedBy = "networkIsPublic";
|
||||
if (!member.count("authorized"))
|
||||
json &ahist = member["authHistory"];
|
||||
if ((!ahist.is_array())||(ahist.size() == 0))
|
||||
autoAuthorized = true;
|
||||
} else {
|
||||
char presentedAuth[512];
|
||||
|
Loading…
Reference in New Issue
Block a user