mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 21:02:49 +00:00
fix 判断局域网ip
This commit is contained in:
parent
30d4e1eaa9
commit
d22ee4b34a
@ -51,7 +51,7 @@ class IndexController extends InvokeController
|
|||||||
*/
|
*/
|
||||||
public function crontab()
|
public function crontab()
|
||||||
{
|
{
|
||||||
if (!Base::is_internal_ip()) {
|
if (!Base::is_internal_ip(Base::getIp())) {
|
||||||
// 限制内网访问
|
// 限制内网访问
|
||||||
return "Forbidden Access";
|
return "Forbidden Access";
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ class IndexController extends InvokeController
|
|||||||
*/
|
*/
|
||||||
public function allcn()
|
public function allcn()
|
||||||
{
|
{
|
||||||
if (!Base::is_internal_ip()) {
|
if (!Base::is_internal_ip(Base::getIp())) {
|
||||||
// 限制内网访问
|
// 限制内网访问
|
||||||
return "Forbidden Access";
|
return "Forbidden Access";
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ class IndexController extends InvokeController
|
|||||||
*/
|
*/
|
||||||
public function allcn__php()
|
public function allcn__php()
|
||||||
{
|
{
|
||||||
if (!Base::is_internal_ip()) {
|
if (!Base::is_internal_ip(Base::getIp())) {
|
||||||
// 限制内网访问
|
// 限制内网访问
|
||||||
return "Forbidden Access";
|
return "Forbidden Access";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user