Comments (5)
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.
@hellais what is the use-case here for having ControlPort set to 0?
from txtorcon.
@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.
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.
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)
- attribute-error on python 3.9
- All of test.test_util is skipped HOT 1
- All of test.test_web skipped
- Many tests in test.test_endpoints.EndpointTests fail when calling `_tor_launcher` with incompatible arguments
- Hosting onion service log says .onion twice
- Three tests errors (test_attribute_access, test_other_bootstrap, and ProtocolIntegrationTests.test_with_arg) HOT 3
- v2 onion in repo metadata HOT 1
- update CI
- use unittest.mock instead of mock HOT 3
- Unable to install txsocksx with python 3 HOT 1
- There is a lingering ipaddress dependency declaration HOT 1
- 1 test fails: AttributeError: [...] does not have the attribute 'pwd'
- twisted.web Agent created by txtorcon should accept other Agent options
- Add support for Python 3.10 and 3.11
- Three unit tests are failing on Python 3.12
- When tor process exits unexpectedly tor.protocol.get_info hangs HOT 5
- Handle limits better HOT 1
- debian sid bug: 1060955
- cant gpg verefy 23.11.0 HOT 6
- Drop or declare dependency on six HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from txtorcon.