From e0f4f93c30360a96a8e95a1619588e81ad5a27af Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Wed, 18 Jun 2025 02:59:11 +0400 Subject: [PATCH] fix: don't create unique temp dir for every cli call --- nodecar/src/proxy-storage.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nodecar/src/proxy-storage.ts b/nodecar/src/proxy-storage.ts index b34d19f..94a9ef5 100644 --- a/nodecar/src/proxy-storage.ts +++ b/nodecar/src/proxy-storage.ts @@ -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 });