mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
reseed proxy
This commit is contained in:
parent
5109d40d8e
commit
65db96e663
3 changed files with 192 additions and 53 deletions
|
@ -1247,7 +1247,7 @@ namespace transport
|
|||
return;
|
||||
}
|
||||
buff[4] = (uint8_t) addrsize;
|
||||
memcpy(buff+4, host.c_str(), addrsize);
|
||||
memcpy(buff+5, host.c_str(), addrsize);
|
||||
}
|
||||
htobe16buf(buff+sz, port);
|
||||
sz += 2;
|
||||
|
@ -1259,7 +1259,7 @@ namespace transport
|
|||
}
|
||||
});
|
||||
|
||||
boost::asio::async_read(conn->GetSocket(), boost::asio::buffer(readbuff, sz), [=](const boost::system::error_code & e, std::size_t transferred) {
|
||||
boost::asio::async_read(conn->GetSocket(), boost::asio::buffer(readbuff, 10), [=](const boost::system::error_code & e, std::size_t transferred) {
|
||||
if(e)
|
||||
{
|
||||
LogPrint(eLogError, "NTCP: socks proxy read error ", e.message());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue