|
|
|
@ -965,6 +965,7 @@ namespace client
|
|
|
|
|
m_cancel_resolve(false)
|
|
|
|
|
{
|
|
|
|
|
m_LocalSocket.set_option (boost::asio::socket_base::receive_buffer_size (I2P_UDP_MAX_MTU));
|
|
|
|
|
m_LocalSocket.set_option (boost::asio::socket_base::reuse_address (true));
|
|
|
|
|
|
|
|
|
|
auto dgram = m_LocalDest->CreateDatagramDestination(gzip);
|
|
|
|
|
dgram->SetReceiver(std::bind(&I2PUDPClientTunnel::HandleRecvFromI2P, this,
|
|
|
|
@ -991,7 +992,8 @@ namespace client
|
|
|
|
|
void I2PUDPClientTunnel::HandleRecvFromLocal(const boost::system::error_code & ec, std::size_t transferred)
|
|
|
|
|
{
|
|
|
|
|
if(ec) {
|
|
|
|
|
LogPrint(eLogError, "UDP Client: ", ec.message());
|
|
|
|
|
LogPrint(eLogError, "UDP Client: Reading from socket error: ", ec.message(), ". Restarting listener...");
|
|
|
|
|
RecvFromLocal(); // Restart listener and continue work
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(!m_RemoteIdent) {
|
|
|
|
|