소스 검색

fix the authorized ip regex

Olivier Massot 5 년 전
부모
커밋
8f77e6638c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}$/'
     ];
 
     /**