Fixed behavior for non-tls mode
This commit is contained in:
parent
fe108a524e
commit
f97a7fb121
2 changed files with 10 additions and 9 deletions
|
@ -62,14 +62,15 @@ bool Httpd::start()
|
|||
MHD_OPTION_HTTPS_MEM_KEY, m_keyPem.c_str(),
|
||||
MHD_OPTION_HTTPS_MEM_CERT, m_certPem.c_str(),
|
||||
MHD_OPTION_END);
|
||||
} else {
|
||||
# endif
|
||||
m_daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, static_cast<uint16_t>(m_options->ccPort()), nullptr,
|
||||
nullptr, &Httpd::handler,
|
||||
this, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 10, MHD_OPTION_END);
|
||||
# ifndef XMRIG_NO_SSL_TLS
|
||||
}
|
||||
# endif
|
||||
|
||||
if (!m_daemon) {
|
||||
m_daemon = MHD_start_daemon(MHD_USE_SELECT_INTERNALLY, static_cast<uint16_t>(m_options->ccPort()), nullptr, nullptr, &Httpd::handler,
|
||||
this, MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 10, MHD_OPTION_END);
|
||||
}
|
||||
|
||||
if (!m_daemon) {
|
||||
LOG_ERR("HTTP Daemon failed to start.");
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue