mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️:fed::well_known: Fix result check throwing without fallback defaulting.
This commit is contained in:
parent
06b70cc274
commit
1c2105425c
1 changed files with 3 additions and 6 deletions
|
@ -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>()
|
||||||
|
|
Loading…
Reference in a new issue