summaryrefslogtreecommitdiff
path: root/src/network.cpp
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-09-16 11:33:40 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-09-16 20:45:26 +0200
commit512e20fa063e4a4525e47e048f26cc68668e7fac (patch)
tree8e2e4907cfcf2729db0b2554fe201f1c1be16b8c /src/network.cpp
parenteefc444714b51db99f18e92634d961465fa78e11 (diff)
Protocol: use cookies during whole plaintext phase
Diffstat (limited to 'src/network.cpp')
-rw-r--r--src/network.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network.cpp b/src/network.cpp
index da480c3..6840f43 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -698,8 +698,7 @@ void Server::Peer::updateChannel(ReplyBuilder & reply)
if (!holds_alternative<Identity>(identity))
return;
- if (holds_alternative<monostate>(connection.channel()) ||
- holds_alternative<NetworkProtocol::Cookie>(connection.channel())) {
+ if (holds_alternative<monostate>(connection.channel())) {
auto req = Channel::generateRequest(tempStorage,
server.self, std::get<Identity>(identity));
connection.channel().emplace<Stored<ChannelRequest>>(req);