From 565f585fae09c3afacae80b80da712da91de7b41 Mon Sep 17 00:00:00 2001 From: Netravnen Date: Tue, 21 Jul 2020 23:18:48 +0000 Subject: [PATCH] increase roa file TTL 3 to 5 days --- rfc8416.php | 15 --------------- roagen.php | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/rfc8416.php b/rfc8416.php index 03b8ddf..5ac47c7 100755 --- a/rfc8416.php +++ b/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); ?> diff --git a/roagen.php b/roagen.php index 282dcab..74df7f5 100755 --- a/roagen.php +++ b/roagen.php @@ -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);