bine icon indicating copy to clipboard operation
bine copied to clipboard

Add support for DisableNetwork?

Open karalabe opened this issue 5 years ago • 2 comments

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 avatar Mar 23 '20 00:03 karalabe

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.

karalabe avatar Mar 23 '20 00:03 karalabe

(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.

cretz avatar Jun 13 '21 02:06 cretz