summaryrefslogtreecommitdiff
path: root/src/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network.cpp')
-rw-r--r--src/network.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network.cpp b/src/network.cpp
index 48ba4b9..9081b18 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -398,7 +398,8 @@ void Server::Priv::handlePacket(Server::Peer & peer, const TransportHeader & hea
case TransportHeader::Type::DataRequest: {
auto pref = std::get<PartialRef>(item.value);
- if (plaintextRefs.find(pref.digest()) != plaintextRefs.end()) {
+ if (holds_alternative<Stored<Channel>>(peer.channel) ||
+ plaintextRefs.find(pref.digest()) != plaintextRefs.end()) {
if (auto ref = peer.tempStorage.ref(pref.digest())) {
TransportHeader::Item hitem { TransportHeader::Type::DataResponse, *ref };
reply.header({ TransportHeader::Type::DataResponse, *ref });