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

Add support for hostname instead of ip address in Controller.from_port #116

Open
Dekwin opened this issue Jan 20, 2022 · 1 comment
Open

Comments

@Dekwin
Copy link

Dekwin commented Jan 20, 2022

Add support for hostname(like "tor-container", or "localhost") as address parameter in Controller.from_port
Currently address parameter only supports ipv4 address.

It is useful when Tor is running in one Docker container, but the Stem connection establishing from another container.

example:

from stem.control import Controller

address="127.0.0.1"
# address="localhost" add support for this, currently this throws an exception
with Controller.from_port(address=address, port=9051) as controller:
   ...
@atagar
Copy link
Contributor

atagar commented Jun 27, 2022

Oddly GitHub didn't provide a useful link for the PR. Here it is: #122

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

2 participants