Explorar el Código

fix the authorized ip regex

Olivier Massot hace 5 años
padre
commit
8f77e6638c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ot_admin/Classes/Http/ApiController.php

+ 1 - 1
ot_admin/Classes/Http/ApiController.php

@@ -17,7 +17,7 @@ class ApiController implements LoggerAwareInterface
     const ALLOWED_IPS = [
         '/^127\.0\.0\.[0-1]$/',
         '/^localhost$/',
-        '/^10\.8\.0\.[0-255]$/'
+        '/^10\.8\.0\.\d{1,3}$/'
     ];
 
     /**