Fixed to not popup the "Refused Connection" by default

* Fixed to not popup the "Refused Connection" by default
* Enable to show via Notify settings "IP security" checbox"
This commit is contained in:
defnax 2021-01-24 13:30:44 +01:00
parent 2d8a86f2fa
commit f794925595

View File

@ -463,7 +463,7 @@ void NewsFeed::handleSecurityEvent(std::shared_ptr<const RsEvent> event)
#endif
uint flags = Settings->getNewsFeedFlags();
if(e.mErrorCode == RsAuthSslError::PEER_REFUSED_CONNECTION)
if(e.mErrorCode == RsAuthSslError::PEER_REFUSED_CONNECTION && (flags & RS_FEED_TYPE_SECURITY_IP))
{
addFeedItemIfUnique(new PeerItem(this, NEWSFEED_PEERLIST, e.mSslId, PEER_TYPE_HELLO, false), true );
return;