mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-22 07:11:47 +02:00
Make i2pcontrol password configurable.
This commit is contained in:
parent
8434863beb
commit
843abb60dd
5 changed files with 12 additions and 11 deletions
i2pcontrol
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue