GithubHelp home page GithubHelp logo

Comments (5)

meejah avatar meejah commented on May 29, 2024

txtorcon depends on talking to the launched Tor after it starts up; if you don't set controlport at all, it will set one itself but if you do it passes your setting through. I haven't double-checked, but I'd guess Tor interprets 0 as "no control port, please" since that's what SOCKSPort=0 means...

Still, this is a bug that txtorcon could/should detect and deal with...

Thanks for the report :)

from txtorcon.

meejah avatar meejah commented on May 29, 2024

@hellais what is the use-case here for having ControlPort set to 0?

from txtorcon.

hellais avatar hellais commented on May 29, 2024

@meejah the use case is that I need to disable setting the control port when starting tor as root. Failing to do so will lead to some permission errors. Also it does not make sense for me to have the control port enabled when I just need to start tor for proxying requests via the socksport.

from txtorcon.

meejah avatar meejah commented on May 29, 2024

Okay, doesn't seem impossible to support. I'd either have to add a "control_port=False" or similar to launch_tor() so it can skip all the "needs controller" bits. Or, I suppose, just detect that ControlPort is 0...

Does it make sense to ultimately get back a TorProcessProtocol object in this case?
It would also then be up to the user to kill off the Tor, I suppose :/

from txtorcon.

meejah avatar meejah commented on May 29, 2024

Now in master, just pass a TorConfig upon which you've run "config.ControlPort=0" first and it should Just Work. Note we don't wait for the tor to be bootstrapped, and the caller is responsible for killing the underlying process.

Perhaps these two limitations could be improved upon, but for now they're limitations...

from txtorcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.