mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
commit
38a81047ae
@ -1266,11 +1266,7 @@ void bdNode::recvPkt(char *msg, int len, struct sockaddr_in addr)
|
||||
/************************** handle id (all) ***************************/
|
||||
be_node *be_id = beMsgGetDictNode(be_data, "id");
|
||||
bdNodeId id;
|
||||
if (be_id)
|
||||
{
|
||||
beMsgGetNodeId(be_id, id);
|
||||
}
|
||||
else
|
||||
if(!be_id || !beMsgGetNodeId(be_id, id))
|
||||
{
|
||||
#ifdef DEBUG_NODE_PARSE
|
||||
std::cerr << "bdNode::recvPkt() Missing Peer Id. Dropping Msg";
|
||||
|
@ -1734,6 +1734,7 @@ void p3GRouter::handleIncomingDataItem(RsGRouterGenericDataItem *data_item)
|
||||
|
||||
receipt_item = new RsGRouterSignedReceiptItem;
|
||||
receipt_item->data_hash = item_hash ;
|
||||
receipt_item->service_id = data_item->service_id ;
|
||||
receipt_item->routing_id = data_item->routing_id ;
|
||||
receipt_item->destination_key = data_item->signature.keyId ;
|
||||
receipt_item->flags = 0 ;
|
||||
|
@ -1673,6 +1673,7 @@ bool p3PeerMgrIMPL::addCandidateForOwnExternalAddress(const RsPeerId &from, cons
|
||||
|
||||
bool p3PeerMgrIMPL::locked_computeCurrentBestOwnExtAddressCandidate(sockaddr_storage& addr, uint32_t& count)
|
||||
{
|
||||
sockaddr_storage_clear(addr);
|
||||
std::map<sockaddr_storage, pqi::ZeroedInt> addr_counts ;
|
||||
|
||||
for(std::map<RsPeerId,sockaddr_storage>::iterator it(mReportedOwnAddresses.begin());it!=mReportedOwnAddresses.end();++it)
|
||||
@ -1697,7 +1698,7 @@ bool p3PeerMgrIMPL::locked_computeCurrentBestOwnExtAddressCandidate(sockaddr_sto
|
||||
#endif
|
||||
}
|
||||
|
||||
return true ;
|
||||
return count > 0 ;
|
||||
}
|
||||
|
||||
bool p3PeerMgrIMPL::getExtAddressReportedByFriends(sockaddr_storage &addr, uint8_t& /*isstable*/)
|
||||
|
@ -939,8 +939,9 @@ int pqissl::Basic_Connection_Complete()
|
||||
}
|
||||
else if ((err == EHOSTUNREACH) || (err == EHOSTDOWN))
|
||||
{
|
||||
#ifdef PQISSL_DEBUG
|
||||
rslog(RSL_WARNING, pqisslzone, "pqissl::Basic_Connection_Complete() EHOSTUNREACH/EHOSTDOWN: cert: " + PeerId().toStdString());
|
||||
|
||||
#endif
|
||||
// Then send unreachable message.
|
||||
net_internal_close(sockfd);
|
||||
sockfd=-1;
|
||||
@ -951,7 +952,9 @@ int pqissl::Basic_Connection_Complete()
|
||||
}
|
||||
else if (err == ECONNREFUSED)
|
||||
{
|
||||
#ifdef PQISSL_DEBUG
|
||||
rslog(RSL_WARNING, pqisslzone, "pqissl::Basic_Connection_Complete() ECONNREFUSED: cert: " + PeerId().toStdString());
|
||||
#endif
|
||||
|
||||
// Then send unreachable message.
|
||||
net_internal_close(sockfd);
|
||||
|
@ -104,7 +104,7 @@ bool RsRecogn::loadSigningKeys(std::map<RsGxsId, RsGxsRecognSignerItem *> &signM
|
||||
if (!item)
|
||||
{
|
||||
#ifdef DEBUG_RECOGN
|
||||
std::cerr << "RsRecogn::loadSigningKeys() failed to deserialise SignerItem";
|
||||
std::cerr << "RsRecogn::loadSigningKeys() failed to deserialise SignerItem from string \"" << RecognSigningKeys[i] << "\"";
|
||||
std::cerr << std::endl;
|
||||
#endif // DEBUG_RECOGN
|
||||
continue;
|
||||
|
@ -48,11 +48,12 @@
|
||||
|
||||
HomePage::HomePage(QWidget *parent) :
|
||||
MainPage(parent),
|
||||
ui(new Ui::HomePage)
|
||||
ui(new Ui::HomePage),
|
||||
mIncludeAllIPs(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
updateOwnCert();
|
||||
updateOwnCert();
|
||||
|
||||
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addFriend()));
|
||||
connect(ui->LoadCertFileButton, SIGNAL(clicked()), this, SLOT(loadCert()));
|
||||
@ -81,8 +82,6 @@ HomePage::HomePage(QWidget *parent) :
|
||||
ui->runStartWizard_PB->hide(); // until future rework
|
||||
ui->LoadCertFileButton->hide(); // duplicates functionality => not good.
|
||||
|
||||
mIncludeAllIPs = false;
|
||||
|
||||
int S = QFontMetricsF(font()).height();
|
||||
QString help_str = tr(
|
||||
" <h1><img width=\"%1\" src=\":/icons/help_64.png\"> Welcome to Retroshare!</h1>\
|
||||
|
Loading…
Reference in New Issue
Block a user