fixed bug caused by wrong reading of disc flag

This commit is contained in:
csoler 2019-09-22 17:05:22 +02:00
parent 9c7edffc21
commit 19ced52a02
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -1028,7 +1028,7 @@ void p3discovery2::recvPGPCertificateRequest( const RsPeerId& fromId, const RsDi
peerState ps;
mPeerMgr->getOwnNetStatus(ps);
if(ps.vs_disc != RS_VS_DISC_OFF)
if(ps.vs_disc == RS_VS_DISC_OFF)
{
std::cerr << "(WW) refusing PGP certificate request from " << fromId << " because discovery is OFF" << std::endl;
return;