Skip to content

[BUG] Hidden Services not enable-able through UI (missing prefs toggle?) #1604

@srdjanrosic

Description

@srdjanrosic

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:

  1. Go to '... More' > 'Hosted Onion Services' > fill out something / anything (e.g. service name foo, port 12345)
  2. 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.
  3. ... 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.
  4. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions