diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-09-16 11:33:40 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-09-16 20:45:26 +0200 |
commit | 512e20fa063e4a4525e47e048f26cc68668e7fac (patch) | |
tree | 8e2e4907cfcf2729db0b2554fe201f1c1be16b8c /src/network.cpp | |
parent | eefc444714b51db99f18e92634d961465fa78e11 (diff) |
Protocol: use cookies during whole plaintext phase
Diffstat (limited to 'src/network.cpp')
-rw-r--r-- | src/network.cpp | 3 |
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); |