mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-13 05:21:32 -05:00
only add direct sources that have flag for direct DL enabled
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6412 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
dc2521cf71
commit
f6509bef31
@ -1233,8 +1233,9 @@ bool ftController::FileRequest(const std::string& fname, const std::string& has
|
|||||||
std::cerr << "\tSource: " << pit->peerId;
|
std::cerr << "\tSource: " << pit->peerId;
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
// Because this is auto-add, we only add sources that we allow to DL from using direct transfers.
|
||||||
|
|
||||||
if (srcIds.end() == std::find( srcIds.begin(), srcIds.end(), pit->peerId))
|
if ((srcIds.end() == std::find( srcIds.begin(), srcIds.end(), pit->peerId)) && (RS_SERVICE_PERM_DIRECT_DL & rsPeers->servicePermissionFlags_sslid(pit->peerId)))
|
||||||
{
|
{
|
||||||
srcIds.push_back(pit->peerId);
|
srcIds.push_back(pit->peerId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user