mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bump ver,system.get更换为同步操作
This commit is contained in:
1 parent
99b7d33157
commit
03d199fe9d
19 files changed
+100
-111
No files matched your search
@@ -34,11 +34,11 @@ const checks: Dictionary<CheckItem> = {
|
||||
}
|
||||
},
|
||||
async checkMail(ctx, log, warn) {
|
||||
const from = await system.get('smtp.from');
|
||||
const from = system.get('smtp.from');
|
||||
if (!from) warn('SMTP account was not provided, email verification disabled.');
|
||||
},
|
||||
async checkIpHeader(ctx, log, warn) {
|
||||
const header = await system.get('server.xff');
|
||||
const header = system.get('server.xff');
|
||||
if (header && !ctx.request.ip) warn('IP header seems incorrect.\nCheck dashboard>settings>server.');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user