Merge 30d8bb15e5
into 6c1cee5f79
This commit is contained in:
commit
bad0d6a33e
|
@ -652,7 +652,11 @@ void start_server(tr_rpc_server* server)
|
|||
|
||||
auto* const base = server->session->event_base();
|
||||
auto* const httpd = evhttp_new(base);
|
||||
|
||||
if (!httpd)
|
||||
{
|
||||
tr_logAddError(fmt::format(_("Couldn't instantiate httpd for '{}'"), static_cast<void*>(server)));
|
||||
return;
|
||||
}
|
||||
evhttp_set_allowed_methods(httpd, EVHTTP_REQ_GET | EVHTTP_REQ_POST | EVHTTP_REQ_OPTIONS);
|
||||
|
||||
auto const address = server->get_bind_address();
|
||||
|
|
Loading…
Reference in New Issue