Add Tor placeholders instructions and fallback

This commit is contained in:
thePR0M3TH3AN
2025-06-21 19:18:28 -04:00
parent 04e91741f1
commit 148e0d0a36
5 changed files with 95 additions and 5 deletions

View File

@@ -46,7 +46,13 @@ function startOnionShare() {
}
async function runServe (retry = false) {
const { torProc, socksPort, controlPort } = await launchTor();
let torProc, socksPort, controlPort;
try {
({ torProc, socksPort, controlPort } = await launchTor());
} catch (err) {
dialog.showErrorBox('Tor error', err.message);
return;
}
const env = { ...process.env,
TOR_SOCKS_PORT: socksPort.toString(),