From 80cd7b434915aaf0c97c733ae8063d42f8bb88f8 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Mon, 17 Jul 2023 01:48:53 -0400 Subject: [PATCH] fix: use hostname as prefix instead of host --- packages/backend/src/config/load.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/config/load.ts b/packages/backend/src/config/load.ts index fa9878955..df163a8ac 100644 --- a/packages/backend/src/config/load.ts +++ b/packages/backend/src/config/load.ts @@ -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); }