mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
fix: use host as prefix of cacheServer if undefined
This commit is contained in:
parent
46c7b3648f
commit
e505b0f207
2 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,8 @@ export default function load() {
|
||||||
mixin.clientEntry = clientManifest["src/init.ts"];
|
mixin.clientEntry = clientManifest["src/init.ts"];
|
||||||
|
|
||||||
if (!config.redis.prefix) config.redis.prefix = mixin.host;
|
if (!config.redis.prefix) config.redis.prefix = mixin.host;
|
||||||
|
if (config.cacheServer && !config.cacheServer.prefix)
|
||||||
|
config.cacheServer.prefix = mixin.host;
|
||||||
|
|
||||||
return Object.assign(config, mixin);
|
return Object.assign(config, mixin);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ export type Source = {
|
||||||
user?: string;
|
user?: string;
|
||||||
tls?: { [y: string]: string };
|
tls?: { [y: string]: string };
|
||||||
};
|
};
|
||||||
cacheServer: {
|
cacheServer?: {
|
||||||
host: string;
|
host: string;
|
||||||
port: number;
|
port: number;
|
||||||
family?: number;
|
family?: number;
|
||||||
|
|
Loading…
Reference in a new issue