浏览代码

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}$/'
     ];
 
     /**