use shared local destination for proxies

This commit is contained in:
orignal 2015-01-17 09:42:44 -05:00
parent 284fb5458e
commit 3c9e6054b5
4 changed files with 12 additions and 2 deletions

View file

@ -231,6 +231,11 @@ namespace proxy
}
}
HTTPProxyServer::HTTPProxyServer(int port):
TCPIPAcceptor(port, i2p::client::context.GetSharedLocalDestination ())
{
}
std::shared_ptr<i2p::client::I2PServiceHandler> HTTPProxyServer::CreateHandler(boost::asio::ip::tcp::socket * socket)
{
return std::make_shared<HTTPProxyHandler> (this, socket);