summaryrefslogtreecommitdiffstats
path: root/skripti
diff options
context:
space:
mode:
Diffstat (limited to 'skripti')
-rwxr-xr-xskripti/ipranges.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/skripti/ipranges.php b/skripti/ipranges.php
index c1d0552..a387da9 100755
--- a/skripti/ipranges.php
+++ b/skripti/ipranges.php
@@ -9,7 +9,10 @@
$a = "";
$p = [];
$c = [];
-foreach (explode("\n", file_get_contents("https://ftp.ripe.net/pub/stats/ripencc/membership/alloclist.txt")) as $l) {
+$response = file_get_contents("https://ftp.ripe.net/pub/stats/ripencc/membership/alloclist.txt");
+if ($response === false)
+ exit(1);
+foreach (explode("\n", $response) as $l) {
if ($l == "")
continue;
if ($l[0] != " ") {