fix: don't create unique temp dir for every cli call

This commit is contained in:
zhom
2025-06-18 02:59:11 +04:00
parent d142b7f79b
commit e0f4f93c30
+1 -4
View File
@@ -11,10 +11,7 @@ export interface ProxyConfig {
pid?: number;
}
const STORAGE_DIR = tmp.dirSync({
prefix: "donutbrowser-proxies-",
unsafeCleanup: true,
}).name;
const STORAGE_DIR = path.join(tmp.tmpdir, "donutbrowser", "proxies");
if (!fs.existsSync(STORAGE_DIR)) {
fs.mkdirSync(STORAGE_DIR, { recursive: true });