Make i2pcontrol password configurable.

This commit is contained in:
EinMByte 2015-08-02 19:59:16 +02:00
parent 8434863beb
commit 843abb60dd
5 changed files with 12 additions and 11 deletions

View file

@ -108,10 +108,12 @@ public:
/**
* Sets up the appropriate handlers.
* @param pass the password required to authenticate (i.e. obtains a token)
* @param ios the parent io_service object, must remain valid throughout
* the lifetime of this I2PControlSession.
*/
I2PControlSession(boost::asio::io_service& ios);
I2PControlSession(boost::asio::io_service& ios,
const std::string& pass = I2P_CONTROL_DEFAULT_PASSWORD);
/**
* Starts the I2PControlSession.