mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
handle webconsole and tunnels bind errors (#510)
This commit is contained in:
parent
92daf21b1e
commit
2abc9807d9
4 changed files with 18 additions and 9 deletions
|
@ -283,10 +283,14 @@ namespace client
|
|||
void TCPIPAcceptor::Start ()
|
||||
{
|
||||
m_Acceptor.reset (new boost::asio::ip::tcp::acceptor (GetService (), m_LocalEndpoint));
|
||||
//update the local end point in case port has been set zero and got updated now
|
||||
// update the local end point in case port has been set zero and got updated now
|
||||
m_LocalEndpoint = m_Acceptor->local_endpoint();
|
||||
m_Acceptor->listen ();
|
||||
Accept ();
|
||||
try {
|
||||
m_Acceptor->listen ();
|
||||
Accept ();
|
||||
} catch (std::exception& ex) {
|
||||
LogPrint (eLogError, "I2PService: failed to start ", GetName(), " acceptor: ", ex.what ());
|
||||
}
|
||||
}
|
||||
|
||||
void TCPIPAcceptor::Stop ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue