increase roa file TTL 3 to 5 days
This commit is contained in:
parent
9c3ca0405f
commit
565f585fae
15
rfc8416.php
15
rfc8416.php
|
@ -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);
|
||||
|
||||
?>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue