summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-08-02 19:04:04 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-08-02 19:04:04 +0200
commitdaccbf4c7f12d1d780f9a74997003883eeb1094a (patch)
tree0a253d53c29c5582dd75cc2b83d66b83cf47f79a
parent7f3b3c98c738068048ffad712bac8a0c26c655b2 (diff)
downloadchd_openwrt-daccbf4c7f12d1d780f9a74997003883eeb1094a.zip
chd_openwrt-daccbf4c7f12d1d780f9a74997003883eeb1094a.tar.gz
chd_openwrt-daccbf4c7f12d1d780f9a74997003883eeb1094a.tar.bz2
Fix IP check for new IP adresses
-rw-r--r--maj/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/maj/index.php b/maj/index.php
index fd634a1..877afeb 100644
--- a/maj/index.php
+++ b/maj/index.php
@@ -60,7 +60,7 @@ $( document ).ready(function() {
$ip4pub=$_SERVER['REMOTE_ADDR'];
}
- if ( preg_match('/^185\.131\.4[01]\.[0-9]{1,3}$/', $ip4pub)!==1 ) {
+ if ( preg_match('/^185\.131\.4[0-3]\.[0-9]{1,3}$/', $ip4pub)!==1 ) {
echo "<div>L'adresse IP $ip4pub n'est pas reconnue.<br />La mise à jour doit obligatoirement être réalisée depuis votre connexion Comminges Haut Débit.</div></body></html>\n";
exit();
}