mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:40:37 +08:00
增加 localhost 检测
This commit is contained in:
1 parent
3464c4da61
commit
40d4de9017
6 files changed
+19
-4
No files matched your search
@@ -10,7 +10,7 @@ const check = async (
|
||||
switch (call.request.service) {
|
||||
case 'cron':
|
||||
const res = await promiseExec(
|
||||
`curl -s --noproxy '*' http://0.0.0.0:${config.port}/api/system`,
|
||||
`curl -s --noproxy '*' http://localhost:${config.port}/api/system`,
|
||||
);
|
||||
|
||||
if (res.includes('200')) {
|
||||
|
||||
Reference in new issue
Block a user