forked from mirror/MCSM-Daemon
Fix: 修复参数错误细节
This commit is contained in:
parent
9538e2aab0
commit
e510b8e1b5
@ -18,7 +18,7 @@ class Config {
|
||||
public key = builderPassword();
|
||||
public maxFileTask = 2;
|
||||
public maxZipFileSize = 60;
|
||||
public language = "";
|
||||
public language = "zh_cn";
|
||||
}
|
||||
|
||||
// 守护进程配置类
|
||||
|
@ -44,7 +44,7 @@ routerApp.use(async (event, ctx, _, next) => {
|
||||
routerApp.on("auth", (ctx, data) => {
|
||||
if (data === globalConfiguration.config.key) {
|
||||
// 身份认证通过,注册会话为可信会话
|
||||
logger.info($t("auth_router.access"), { id: ctx.socket.id, address: ctx.socket.handshake.address });
|
||||
logger.info($t("auth_router.access", { id: ctx.socket.id, address: ctx.socket.handshake.address }));
|
||||
loginSuccessful(ctx, data);
|
||||
protocol.msg(ctx, "auth", true);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user