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_SOCKS_PORT=9050
export TOR_CONTROL_PORT=9051 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` The files in `voxvera/resources/tor/*` are not real executables. Install `tor`
and `obfs4proxy` yourself (e.g. `apt install tor obfs4proxy`) then set and `obfs4proxy` yourself (e.g. `apt install tor obfs4proxy`) then set
`TOR_SOCKS_PORT` and `TOR_CONTROL_PORT` before running `voxvera serve` or the `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 Electron GUI. OnionShare uses these values with its `--use-running-tor`
files automatically. argument. Running `scripts/download_tor.sh` can also populate the missing files
automatically.
## Firewall rules ## Firewall rules
- If `voxvera serve` fails to start OnionShare, verify that outbound connections on ports 9001 and 80 are permitted. - 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 = [ cmd = [
'onionshare-cli', '--website', '--public', 'onionshare-cli', '--website', '--public',
'--persistent', str(dir_path / '.onionshare-session'), '--persistent', str(dir_path / '.onionshare-session'),
'--external-tor-socks-port', socks, '--use-running-tor',
'--external-tor-control-port', ctl,
str(dir_path) str(dir_path)
] ]
proc = subprocess.Popen(cmd, proc = subprocess.Popen(cmd,