mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
specify keys file for proxy's local destination
This commit is contained in:
parent
028e3a6c35
commit
a09c67772c
6 changed files with 209 additions and 134 deletions
9
SOCKS.h
9
SOCKS.h
|
@ -13,14 +13,15 @@ namespace proxy
|
|||
{
|
||||
class SOCKSServer: public i2p::client::TCPIPAcceptor
|
||||
{
|
||||
public:
|
||||
|
||||
SOCKSServer(int port, std::shared_ptr<i2p::client::ClientDestination> localDestination = nullptr);
|
||||
~SOCKSServer() {};
|
||||
|
||||
protected:
|
||||
// Implements TCPIPAcceptor
|
||||
std::shared_ptr<i2p::client::I2PServiceHandler> CreateHandler(boost::asio::ip::tcp::socket * socket);
|
||||
const char* GetName() { return "SOCKS"; }
|
||||
|
||||
public:
|
||||
SOCKSServer(int port);
|
||||
~SOCKSServer() {}
|
||||
};
|
||||
|
||||
typedef SOCKSServer SOCKSProxy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue