torproject / stem

Python controller library for Tor
https://stem.torproject.org/
GNU Lesser General Public License v3.0
257 stars 75 forks source link

Example exit_used.py not working #94

Closed Jiw0cha closed 3 years ago

Jiw0cha commented 3 years ago

Hello.

I run https://github.com/torproject/stem/blob/63a476056017dda5ede35efc4e4f7acfcc1d7d1a/docs/_static/example/exit_used.py and stream_event not сalled

I use: stem==1.8.0 Tor version 0.4.2.7.

atagar commented 3 years ago

Hi Jim. I can't remotely troubleshoot that. Maybe you didn't visit anything in your tor browser or you attached to a different tor instance?

Jiw0cha commented 3 years ago

Maybe you didn't visit anything in your tor browser or you attached to a different tor instance?

I don't use tor browser. I run tor as service. And after run script exit_used.py, i see in log tor:

Apr 12 18:57:08 localhost.localdomain Tor[17870]: New control connection opened from 127.0.0.1.

It connects, but nothing does. Is there any way to debug?

atagar commented 3 years ago

I don't use tor browser. I run tor as service.

I think there might be a misunderstanding about what that script does. When you send client traffic through tor (ie, use the tor network) the exit_used.py tells you the relay your traffic exited from. If you don't send anything through tor the script will rightfully not present anything.

Jiw0cha commented 3 years ago

I don't use tor browser. I run tor as service.

I think there might be a misunderstanding about what that script does. When you send client traffic through tor (ie, use the tor network) the exit_used.py tells you the relay your traffic exited from. If you don't send anything through tor the script will rightfully not present anything.

Thanks. Worked!