我安装了Tor作为我的Windows机器上的服务运行,我试图通过Stem包在python中发出请求.在我的torrc文件中,我将ControlPort指定为9051并设置了HashedControlPassword.当我运行netstat时,我看到Tor在localhost:9050上运行,但没有任何东西正在侦听端口9051.因此,当我尝试连接到python中的ControlPort时:
Controller.from_port(port=9051)
Run Code Online (Sandbox Code Playgroud)
结果是
[Errno 10061] No connection could be made because the target machine actively refused it
Run Code Online (Sandbox Code Playgroud)
我尝试重新启动服务,我甚至重新安装了Tor浏览器,但似乎没有什么能让ControlPort工作.