mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-17 15:59:41 +08:00
整理 - 删除不必要注释
This commit is contained in:
parent
fcb66cf8c8
commit
403832c315
@ -18,16 +18,10 @@ ftpServerInterface.createFTPServer({
|
||||
if (!realName || !serverName) return false;
|
||||
|
||||
let user = userModel.userCenter().get(realName);
|
||||
//if (serverModel.ServerManager().isExist(serverName) && permission.isCanServer(realName, serverName)) {
|
||||
|
||||
let dataModel = serverModel.ServerManager().getServer(serverName).dataModel || null;
|
||||
if (dataModel) return dataModel.cwd;
|
||||
|
||||
//}
|
||||
// connected.close();
|
||||
//return null;
|
||||
|
||||
// return process.cwd() + '/' + connected.username;
|
||||
},
|
||||
pasvPortRangeStart: 1025,
|
||||
pasvPortRangeEnd: 1050,
|
||||
|
@ -34,9 +34,6 @@ module.exports.needLogin = (req, res, trueCallBack, falseCallBack) => {
|
||||
return false;
|
||||
}
|
||||
|
||||
// module.exports.wsNeedLogin = (ws) => {
|
||||
|
||||
// }
|
||||
const counter = require('../core/counter');
|
||||
|
||||
module.exports.isMaster = (wsSession, notPermssionCounter) => {
|
||||
|
@ -33,6 +33,7 @@ app.post('/', function (req, res) {
|
||||
var baseR = require('./controller/function');
|
||||
var authR = require('./controller/auth');
|
||||
|
||||
// Not need
|
||||
// process.on("uncaughtException", function (err) {
|
||||
// console.log('UncaughtException 机制错误报告:', err);
|
||||
// });
|
||||
|
Loading…
Reference in New Issue
Block a user