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
|
@ -1084,10 +1084,15 @@ namespace http {
|
|||
i2p::config::SetOption("http.pass", pass);
|
||||
LogPrint(eLogInfo, "HTTPServer: password set to ", pass);
|
||||
}
|
||||
m_IsRunning = true;
|
||||
m_Thread = std::unique_ptr<std::thread>(new std::thread (std::bind (&HTTPServer::Run, this)));
|
||||
m_Acceptor.listen ();
|
||||
Accept ();
|
||||
|
||||
try {
|
||||
m_IsRunning = true;
|
||||
m_Thread = std::unique_ptr<std::thread>(new std::thread (std::bind (&HTTPServer::Run, this)));
|
||||
m_Acceptor.listen ();
|
||||
Accept ();
|
||||
} catch (std::exception& ex) {
|
||||
LogPrint (eLogError, "HTTPServer: failed to start webconsole: ", ex.what ());
|
||||
}
|
||||
}
|
||||
|
||||
void HTTPServer::Stop ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue