Changeset View
Changeset View
Standalone View
Standalone View
src/httpserver.cpp
Show First 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | #endif | ||||
} | } | ||||
} | } | ||||
bool InitHTTPServer(Config &config) { | bool InitHTTPServer(Config &config) { | ||||
if (!InitHTTPAllowList()) { | if (!InitHTTPAllowList()) { | ||||
return false; | return false; | ||||
} | } | ||||
if (gArgs.GetBoolArg("-rpcssl", false)) { | |||||
uiInterface.ThreadSafeMessageBox( | |||||
"SSL mode for RPC (-rpcssl) is no longer supported.", "", | |||||
CClientUIInterface::MSG_ERROR); | |||||
return false; | |||||
} | |||||
// Redirect libevent's logging to our own log | // Redirect libevent's logging to our own log | ||||
event_set_log_callback(&libevent_log_cb); | event_set_log_callback(&libevent_log_cb); | ||||
// Update libevent's log handling. Returns false if our version of | // Update libevent's log handling. Returns false if our version of | ||||
// libevent doesn't support debug logging, in which case we should | // libevent doesn't support debug logging, in which case we should | ||||
// clear the BCLog::LIBEVENT flag. | // clear the BCLog::LIBEVENT flag. | ||||
if (!UpdateHTTPServerLogging( | if (!UpdateHTTPServerLogging( | ||||
LogInstance().WillLogCategory(BCLog::LIBEVENT))) { | LogInstance().WillLogCategory(BCLog::LIBEVENT))) { | ||||
LogInstance().DisableCategory(BCLog::LIBEVENT); | LogInstance().DisableCategory(BCLog::LIBEVENT); | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |