Skip to content

feat: allow caller-configurable Tor data directory#73

Open
sneurlax wants to merge 1 commit into
Foundation-Devices:mainfrom
sneurlax:feat/configurable-tor-data-dir
Open

feat: allow caller-configurable Tor data directory#73
sneurlax wants to merge 1 commit into
Foundation-Devices:mainfrom
sneurlax:feat/configurable-tor-data-dir

Conversation

@sneurlax

Copy link
Copy Markdown
Collaborator

Add an optional dataDirPath parameter to Tor.start() and Tor.enable(). When provided, the tor_state and tor_cache directories are created under that path; otherwise the application support directory is used as before.

This lets embedders place Tor state in an app-specific location rather than being tied to getApplicationSupportDirectory().

This comes from cypherstack/tor's divergences from your upstream Foundation-Devices/tor--we found this change useful and use it currently, but you can take it or leave it :)

Add an optional dataDirPath parameter to Tor.start() and Tor.enable().
When provided, the tor_state and tor_cache directories are created under
that path; otherwise the application support directory is used as before.

This lets embedders place Tor state in an app-specific location rather
than being tied to getApplicationSupportDirectory().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant