Commit 827be81e authored by zhoujun's avatar zhoujun

ip白名单

parent 40c23e52
Pipeline #2026 passed with stage
in 1 second
...@@ -44,7 +44,7 @@ class AdminController extends Controller ...@@ -44,7 +44,7 @@ class AdminController extends Controller
$ips = explode(',',$ip); $ips = explode(',',$ip);
if(!in_array($ips[0],['116.227.124.169','116.227.126.145','180.157.250.155','114.86.189.146'])){ if(!in_array($ips[0],['116.227.124.169','116.227.126.145','180.157.250.155','114.86.189.146','114.86.189.140'])){
abort(404); abort(404);
exit(); exit();
} }
...@@ -69,7 +69,7 @@ class AdminController extends Controller ...@@ -69,7 +69,7 @@ class AdminController extends Controller
$ips = explode(',',$ip); $ips = explode(',',$ip);
if(!in_array($ips[0],['116.227.124.169','116.227.126.145','180.157.250.155','114.86.189.146'])){ if(!in_array($ips[0],['116.227.124.169','116.227.126.145','180.157.250.155','114.86.189.146','114.86.189.140'])){
exit('页面走丢了'); exit('页面走丢了');
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment