fix(dns): disable caching by default (#4007)

This commit is contained in:
Meier Lukas
2025-09-05 23:05:30 +02:00
committed by GitHub
parent d5eb812b72
commit 10668ee359
2 changed files with 7 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ import { DnsCacheManager } from "dns-caching";
import { logger } from "@homarr/log";
import { env } from "../env";
// Add global type augmentation for homarr
declare global {
var homarr: {
@@ -19,4 +21,6 @@ global.homarr.dnsCacheManager ??= new DnsCacheManager({
logger,
});
global.homarr.dnsCacheManager.initialize();
if (env.ENABLE_DNS_CACHING) {
global.homarr.dnsCacheManager.initialize();
}