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

@ -6,12 +6,10 @@
#include "util/Timestamp.h"
#include "version.h"
namespace i2p
{
namespace client
{
I2PControlService::I2PControlService(const std::string& address, int port)
: m_Session(std::make_shared<I2PControlSession>(m_Service)),
namespace i2p {
namespace client {
I2PControlService::I2PControlService(const std::string& address, int port, const std::string& pass)
: m_Session(std::make_shared<I2PControlSession>(m_Service, pass)),
m_IsRunning(false), m_Thread(nullptr),
m_Acceptor(m_Service, boost::asio::ip::tcp::endpoint(
boost::asio::ip::address::from_string(address), port)