mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-04 12:37:30 +00:00
Configurable addresses from master
This commit is contained in:
1 parent
4e2ba71d59
commit
cee1b8a64a
19 files changed
+47
-39
No files matched your search
@@ -524,9 +524,9 @@ namespace client
|
||||
SendReplyError ("malformed");
|
||||
}
|
||||
|
||||
BOBCommandChannel::BOBCommandChannel (int port):
|
||||
BOBCommandChannel::BOBCommandChannel (const std::string& address, int port):
|
||||
m_IsRunning (false), m_Thread (nullptr),
|
||||
m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), port))
|
||||
m_Acceptor (m_Service, boost::asio::ip::tcp::endpoint(boost::asio::ip::address::from_string(address), port))
|
||||
{
|
||||
// command -> handler
|
||||
m_CommandHandlers[BOB_COMMAND_ZAP] = &BOBCommandSession::ZapCommandHandler;
|
||||
|
||||
Reference in new issue
Block a user