-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Damian Johnson atagar@torproject.org writes:
I'm wondering whether it is possible to use Tor controller to detect when the circuit/path in use is changed and obtain the list of IP addresses of those relay nodes.
- txtorcon (https://txtorcon.readthedocs.org/en/latest/) - controller
library for twisted apps
Specifically, try this example:
https://github.com/meejah/txtorcon/blob/master/examples/stream_circuit_logge...
You'll be interested in the last hop in the "path" attribute of Circuit objects. If you want to know which streams are exiting via which circuits, listen for STREAM events and look at the Circuit to which they're connected.
- -- meejah