-
-
Notifications
You must be signed in to change notification settings - Fork 442
Description
Describe the Bug
Adding and toggling individual hidden services is insufficient to emit HiddenServiceDir and HiddenServicePort lines when generating torrc
In current stable 17.8.0-RC-3-tor-0.4.8.21:
if (Prefs.hostOnionServicesEnabled) {
val extraLines = StringBuffer()
OnionServiceColumns.addV3OnionServicesToTorrc(extraLines, context,
OnionServiceColumns.createV3OnionDir(context))
conf.addAll(extraLines.split("\n"))
}
The addV3OnionServicesToTorrc is never invoked because there's no way through the UI to set hostOnionServicesEnabled to true.
I think it's likely that there was a toggle in some menu somewhere that might have been dropped accidentally during previous refactoring.
To Reproduce
Steps to reproduce the behavior:
- Go to '... More' > 'Hosted Onion Services' > fill out something / anything (e.g. service name foo, port 12345)
- See a toast saying you need to restart orbot .. which is fine, because orbot should generate torrc, that will cause the directory to be populated on startup after connecting.
- ... except that piece of config is never generated, .. and you can't copy the domain name it keeps saying to restart orbot/tor, regardless of what is in those settings.
- See code above.
Expected Behavior
If there are services defined and toggled on, each should yield a couple of HidderService... lines
What Custom Configuration Do You Use?
Basic fresh install.
Screenshots
I could but, it shouldn't really matter.
Additional Context
none.