Skip to content

Commit

Permalink
Fix noise key
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 25, 2023
1 parent 20313dc commit deaa31d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ R"x*x*x(<html>

fvalue = cvalue;

co_await net::async_read(
recv_length = co_await net::async_read(
socket,
net::buffer(bufs, recv_length),
net_awaitable[error]);
Expand All @@ -597,8 +597,8 @@ R"x*x*x(<html>
static_cast<uint16_t>(bufs[1]) |
(static_cast<uint16_t>(bufs[0]) << 8);

noise.push_back(bufs[0]);
noise.push_back(bufs[1]);
for (int i = 0; i < recv_length; i++)
noise.push_back(bufs[i]);

len += recv_length;
if (len == 1)
Expand Down Expand Up @@ -2459,7 +2459,7 @@ R"x*x*x(<html>

fvalue = cvalue;

co_await net::async_read(
recv_length = co_await net::async_read(
socket,
net::buffer(bufs, recv_length),
net_awaitable[error]);
Expand All @@ -2478,8 +2478,8 @@ R"x*x*x(<html>
static_cast<uint16_t>(bufs[1]) |
(static_cast<uint16_t>(bufs[0]) << 8);

noise.push_back(bufs[0]);
noise.push_back(bufs[1]);
for (int i = 0; i < recv_length; i++)
noise.push_back(bufs[i]);

len += recv_length;
if (len == 1)
Expand Down

0 comments on commit deaa31d

Please sign in to comment.