tor_control
tor_control is a crystal library for controlling a tor process through its control port.
Installation
-
Add the dependency to your
shard.yml:dependencies: tor_control: git: https://codeberg.org/wuestenfee/tor_control.git -
Run
shards install
Usage
require "tor_control"
Checkout the example for reference.
Development
The Tor control protocol is specified at https://spec.torproject.org/control-spec/
The traffic with Tor is being logged for debugging, set up logging to access it.
Contributing
- Fork it (https://codeberg.org/wuestenfee/tor_control/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- wuestenfee - creator and maintainer