increase roa file TTL 3 to 5 days

This commit is contained in:
Netravnen 2020-07-21 23:18:48 +00:00
parent 9c3ca0405f
commit 565f585fae
2 changed files with 1 additions and 16 deletions

View file

@ -213,21 +213,6 @@ foreach ($raw_array as $sub_array)
}
}
/*
* Function: Add metadata
*
* Add info
* 1. generation time (now),
* 2. expire time (now + 3 days),
* 3. number of routes
*
* Numbers must be unquoted integers, and timeformat must
* be epoch format. TImezone is set to Etc/UTC.
*/
//$roas["metadata"]["counts"] = (int)count($roas["locallyAddedAssertions"]["prefixAssertions"]);
//$roas["metadata"]["generated"] = (int)(date_format(new \DateTime("now",new \DateTimeZone("UTC")),"U"));
//$roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+3day"),"U"));
writeRoutinatorExceptionFile($roas);
?>

View file

@ -224,7 +224,7 @@ foreach ($raw_array as $sub_array)
*/
$roas["metadata"]["counts"] = (int)count($roas["roas"]);
$roas["metadata"]["generated"] = (int)(date_format(new \DateTime("now",new \DateTimeZone("UTC")),"U"));
$roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+3day"),"U"));
$roas["metadata"]["valid"] = (int)(date_format(date_modify(new \DateTime("now",new \DateTimeZone("UTC")),"+5day"),"U"));
writeExportJSON($roas);
writeBirdConfig($roas);