mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-03 03:36:41 +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";
|
authorizedBy = "memberIsAuthorized";
|
||||||
} else if (!_jB(network["private"],true)) {
|
} else if (!_jB(network["private"],true)) {
|
||||||
authorizedBy = "networkIsPublic";
|
authorizedBy = "networkIsPublic";
|
||||||
if (!member.count("authorized"))
|
json &ahist = member["authHistory"];
|
||||||
|
if ((!ahist.is_array())||(ahist.size() == 0))
|
||||||
autoAuthorized = true;
|
autoAuthorized = true;
|
||||||
} else {
|
} else {
|
||||||
char presentedAuth[512];
|
char presentedAuth[512];
|
||||||
|
Loading…
Reference in New Issue
Block a user