You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tor): make the toggle find + start the auto-installed Tor (v3.2.3)
Real-device test surfaced "Tor couldn't start" even though Tor installed and
ran. Three bugs, all fixed:
- Layout: ensure_tor put Tor in $APP_DIR/tor-bin, but the launcher/helper live
in a tronbrowser/ subdir, so the helper's $DIR/tor-bin missed it. Now install
Tor next to the launcher, AND the helper also searches the parent's tor-bin/.
- Lib path: the Expert Bundle tor needs LD_LIBRARY_PATH; the old condition only
matched when tor was under $DIR. Now detect a bundle by a sibling libevent and
set LD_LIBRARY_PATH/DYLD_LIBRARY_PATH wherever tor was found (else it exits
instantly → "tor-exited").
- Double-start: if Tor is already serving SOCKS (e.g. `tron tor` or a system
service), reuse it instead of spawning a second tor that fails to bind 9050.
Validated end-to-end against real Tor (in the misplaced-dir scenario): helper
finds Tor, sets the lib path, bootstraps to 100%, and curl --socks5-hostname
returns IsTor:true; reuse path confirmed ("reusing it"). `tron tor` resolver +
LD path updated to match.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments