0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd:Ⓜ️:fed::well_known: Fix result check throwing without fallback defaulting.

This commit is contained in:
Jason Volk 2022-08-09 13:14:24 -07:00
parent 06b70cc274
commit 1c2105425c

View file

@ -446,6 +446,9 @@ try
if(!result)
result = req.target;
if(!rfc3986::valid_remote(std::nothrow, result))
result = req.target;
if(result != req.target)
log::debug
{
@ -455,12 +458,6 @@ try
result,
};
// This construction validates we didn't get a junk string
volatile const net::hostport ret
{
result
};
const bool cache_expired
{
req.expires < now<system_point>()