Explorar o código

fix the authorized ip regex

Olivier Massot %!s(int64=5) %!d(string=hai) anos
pai
achega
8f77e6638c
Modificáronse 1 ficheiros con 1 adicións e 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}$/'
     ];
 
     /**