0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 05:58:56 +02:00

modules/s_fetch: Simplify origin selection branch.

This commit is contained in:
Jason Volk 2019-04-15 17:18:31 -07:00
parent 889b65a002
commit 474dff9f9f

View file

@ -822,7 +822,10 @@ ircd::m::fetch::start(request &request)
{
m::v1::event::opts opts;
opts.dynamic = true;
opts.remote = request.origin?: select_random_origin(request);
if(!request.origin)
select_random_origin(request);
opts.remote = request.origin;
return start(request, opts);
}