Fix OnionShare flags

This commit is contained in:
thePR0M3TH3AN
2025-06-21 19:56:08 -04:00
parent 83a7477cf4
commit cd53e9c8f7
3 changed files with 7 additions and 5 deletions

View File

@@ -112,7 +112,9 @@ After installing either way, set the ports used by Tor:
export TOR_SOCKS_PORT=9050
export TOR_CONTROL_PORT=9051
```
Run `voxvera check` to confirm the binaries are detected before launching.
These variables let OnionShare connect to the already running Tor using its
`--use-running-tor` option. Run `voxvera check` to confirm the binaries are
detected before launching.
---

View File

@@ -11,8 +11,9 @@ This page collects common issues encountered when hosting or accessing flyers.
The files in `voxvera/resources/tor/*` are not real executables. Install `tor`
and `obfs4proxy` yourself (e.g. `apt install tor obfs4proxy`) then set
`TOR_SOCKS_PORT` and `TOR_CONTROL_PORT` before running `voxvera serve` or the
Electron GUI. Running `scripts/download_tor.sh` can also populate the missing
files automatically.
Electron GUI. OnionShare uses these values with its `--use-running-tor`
argument. Running `scripts/download_tor.sh` can also populate the missing files
automatically.
## Firewall rules
- If `voxvera serve` fails to start OnionShare, verify that outbound connections on ports 9001 and 80 are permitted.

View File

@@ -348,8 +348,7 @@ def serve(config_path: str):
cmd = [
'onionshare-cli', '--website', '--public',
'--persistent', str(dir_path / '.onionshare-session'),
'--external-tor-socks-port', socks,
'--external-tor-control-port', ctl,
'--use-running-tor',
str(dir_path)
]
proc = subprocess.Popen(cmd,