fix: use hostname as prefix instead of host

This commit is contained in:
Namekuji 2023-07-17 01:48:53 -04:00
parent 04c43ed3ef
commit 0775ad96f9
No known key found for this signature in database
GPG Key ID: 1D62332C07FBA532
1 changed files with 2 additions and 2 deletions

View File

@ -54,9 +54,9 @@ export default function load() {
mixin.userAgent = `Calckey/${meta.version} (${config.url})`;
mixin.clientEntry = clientManifest["src/init.ts"];
if (!config.redis.prefix) config.redis.prefix = mixin.host;
if (!config.redis.prefix) config.redis.prefix = mixin.hostname;
if (config.cacheServer && !config.cacheServer.prefix)
config.cacheServer.prefix = mixin.host;
config.cacheServer.prefix = mixin.hostname;
return Object.assign(config, mixin);
}