Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tor 配置 #1

Open
wh-orange opened this issue Apr 3, 2020 · 0 comments
Open

tor 配置 #1

wh-orange opened this issue Apr 3, 2020 · 0 comments

Comments

@wh-orange
Copy link

大佬 请教一下torrc文件该怎么配置,我自己搭建的运行脚本后一直报错

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/stem/socket.py", line 535, in _make_socket
control_socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/tor/DeepMix-/init.py", line 33, in switch_ip
controller = Controller.from_port(port=int(tor_listener_port)) #9151为tor的监听端口
File "/usr/local/lib/python3.6/dist-packages/stem/control.py", line 1033, in from_port
control_port = stem.socket.ControlPort(address, port)
File "/usr/local/lib/python3.6/dist-packages/stem/socket.py", line 503, in init
self.connect()
File "/usr/local/lib/python3.6/dist-packages/stem/socket.py", line 172, in connect
self._socket = self._make_socket()
File "/usr/local/lib/python3.6/dist-packages/stem/socket.py", line 538, in _make_socket
raise stem.SocketError(exc)
stem.SocketError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "run.py", line 6, in
init.switch_ip() #建立新的tor节点
File "/root/tor/DeepMix-/init.py", line 45, in switch_ip
controller.close()
UnboundLocalError: local variable 'controller' referenced before assignment

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

No branches or pull requests

1 participant