aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock-dev/countryblock.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-10-26 02:07:32 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-10-26 02:07:32 -0200
commit4781c57994b43933ba175f29c2cc251b06b8e6d1 (patch)
tree9837ecb4af37285f205e1807a5a9d7a1e1406957 /config/countryblock-dev/countryblock.php
parent1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c (diff)
downloadpfsense-packages-4781c57994b43933ba175f29c2cc251b06b8e6d1.tar.gz
pfsense-packages-4781c57994b43933ba175f29c2cc251b06b8e6d1.tar.bz2
pfsense-packages-4781c57994b43933ba175f29c2cc251b06b8e6d1.zip
countryblock-dev - add more controls to prevent sync erros
Diffstat (limited to 'config/countryblock-dev/countryblock.php')
-rw-r--r--config/countryblock-dev/countryblock.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/countryblock-dev/countryblock.php b/config/countryblock-dev/countryblock.php
index 96822e12..5d0f825a 100644
--- a/config/countryblock-dev/countryblock.php
+++ b/config/countryblock-dev/countryblock.php
@@ -49,6 +49,8 @@ foreach ($files as $cont => $file){
${$ISOCode}.=$line."\n";
}
}
+#save last country networks
+file_put_contents($cdir.'/'.$ISOCode.'.txt',${$ISOCode},LOCK_EX);
$cont_name= preg_replace("/ /","",$cont);
$cont_name_lower= strtolower($cont_name);
#file_put_contents($cdir.'/'.$cont_name.'.txt',$ips,LOCK_EX);