Several more SSO/OIDC related fixes, and bump version to 1.8.9.
This commit is contained in:
parent
ef08346a74
commit
ee0a194b25
8 changed files with 27 additions and 21 deletions
|
@ -1223,10 +1223,16 @@ void Network::requestConfiguration(void *tPtr)
|
|||
bool Network::gate(void *tPtr,const SharedPtr<Peer> &peer)
|
||||
{
|
||||
const int64_t now = RR->node->now();
|
||||
//int64_t comTimestamp = 0;
|
||||
//int64_t comRevocationThreshold = 0;
|
||||
Mutex::Lock _l(_lock);
|
||||
try {
|
||||
if (_config) {
|
||||
Membership *m = _memberships.get(peer->address());
|
||||
//if (m) {
|
||||
// comTimestamp = m->comTimestamp();
|
||||
// comRevocationThreshold = m->comRevocationThreshold();
|
||||
//}
|
||||
if ( (_config.isPublic()) || ((m)&&(m->isAllowedOnNetwork(_config, peer->identity()))) ) {
|
||||
if (!m)
|
||||
m = &(_membership(peer->address()));
|
||||
|
@ -1237,7 +1243,8 @@ bool Network::gate(void *tPtr,const SharedPtr<Peer> &peer)
|
|||
}
|
||||
}
|
||||
} catch ( ... ) {}
|
||||
//printf("%.16llx %.10llx not allowed\n", _id, peer->address().toInt()); fflush(stdout);
|
||||
//printf("%.16llx %.10llx not allowed, COM ts %lld revocation %lld\n", _id, peer->address().toInt(), comTimestamp, comRevocationThreshold); fflush(stdout);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue