From cb321aaf7ffe026eed86fa372cf814ff5b1ce57a Mon Sep 17 00:00:00 2001 From: suwings Date: Wed, 30 May 2018 13:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20-=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B8=B4=E6=97=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.js b/app.js index 0b43202d..1f4cfcd9 100644 --- a/app.js +++ b/app.js @@ -245,6 +245,14 @@ app.use('/fs', require('./onlinefs/controller/function')); if (MCSERVER.localProperty.ftp_is_allow) require('./ftpd/index'); //执行ftp逻辑 + + setTimeout(() => { + let arg2 = process.argv[2]; + if (arg2 == '--debug') { + MCSERVER.infoLog("测试完毕 | 退出..."); + process.exit(0); + } + }, 10000); });