From 786177eaf0607f241e23e67f5f5c3a49e0699665 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 8 Nov 2012 19:47:39 +0000 Subject: [PATCH] Files being downloaded anonymously are declared as available with flag DIR_FLAGS_NETWORK_WIDE_OTHERS. Fixes bug that prevented swarming to happen git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5795 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftcontroller.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/ft/ftcontroller.cc b/libretroshare/src/ft/ftcontroller.cc index dc8990b0c..93439ddad 100644 --- a/libretroshare/src/ft/ftcontroller.cc +++ b/libretroshare/src/ft/ftcontroller.cc @@ -1623,11 +1623,15 @@ bool ftController::FileDetails(const std::string &hash, FileInfo &info) /* extract details */ info.hash = hash; info.fname = it->second->mName; + info.storage_permission_flags.clear() ; info.transfer_info_flags = it->second->mFlags ; info.priority = SPEED_NORMAL ; RsDirUtil::removeTopDir(it->second->mDestination, info.path); /* remove fname */ info.queue_position = it->second->mQueuePosition ; + if(it->second->mFlags & RS_FILE_REQ_ANONYMOUS_ROUTING) + info.storage_permission_flags |= DIR_FLAGS_NETWORK_WIDE_OTHERS ; // file being downloaded anonymously are always anonymously available. + /* get list of sources from transferModule */ std::list peerIds; std::list::iterator pit;