mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-06-06 15:03:58 +02:00
fix: don't create unique temp dir for every cli call
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user