0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +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) if(!result)
result = req.target; result = req.target;
if(!rfc3986::valid_remote(std::nothrow, result))
result = req.target;
if(result != req.target) if(result != req.target)
log::debug log::debug
{ {
@ -455,12 +458,6 @@ try
result, result,
}; };
// This construction validates we didn't get a junk string
volatile const net::hostport ret
{
result
};
const bool cache_expired const bool cache_expired
{ {
req.expires < now<system_point>() req.expires < now<system_point>()