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 DisableNetwork? #41

Open
karalabe opened this issue Mar 23, 2020 · 2 comments
Open

Add support for DisableNetwork? #41

karalabe opened this issue Mar 23, 2020 · 2 comments

Comments

@karalabe
Copy link
Contributor

This library currently supports starting Tor offline and then enabling networking at a later point. Sometimes it can be useful to also disable networking. Perhaps you could add an equivalent method?

My initial approach was to tear down Tor when not needed and rebuild it when needed agan, unfortunately something goes haywire in the process after tear-down and I can't rebuild onions post-restart. If I restart my process, everything works again. I've received similar bugreports on my lib too and I tried Tor 0.4.2.7 and it hung the same way.

@karalabe
Copy link
Contributor Author

I can hack this myself currently via proxy.Control.SetConf(control.KeyVals("DisableNetwork", "1")...), it just feels out of scope to do it myself in my app.

@cretz
Copy link
Owner

cretz commented Jun 13, 2021

(sorry, been away from this project a while)

This library currently supports starting Tor offline and then enabling networking at a later point

At which point? There is an option on SkipEnableNetwork on the DialConf if it's during dial.

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