diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-05-26 19:51:14 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-05-26 19:51:14 +0200 |
commit | dfab3a086a21f63a4668209ecb11b02118d50053 (patch) | |
tree | 405c9757ffed0facb8ada80c1a632d66a6bff356 /skripti | |
parent | inventar + upravljalnik (diff) | |
download | r-dfab3a086a21f63a4668209ecb11b02118d50053.tar r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.gz r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.bz2 r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.lz r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.xz r-dfab3a086a21f63a4668209ecb11b02118d50053.tar.zst r-dfab3a086a21f63a4668209ecb11b02118d50053.zip |
Diffstat (limited to 'skripti')
-rwxr-xr-x | skripti/ipranges.php | 5 |
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] != " ") { |