allow host names in `HiddenServicePort` option
Summary
In the HiddenServicePort
configuration option, allow (simple) host names to be used in place of IP addresses.
In my case, I'm using Tor in a Docker container with orchestration by docker-compose. The actual services I want to "hide" are all in separate containers. In such a setup, IP addresses are not stable – they are assigned on start of docker-compose, and depend on many factors. Which is why it's recommended to use host names to refer to other containers, rather than IPs. However tor
doesn't seem to resolve host names in this case.
I guess other usecases would benefit too, like home networks with DHCP-assigned addresses.
(If you want to prevent DNS lookups for privacy reasons, perhaps limit this to simple host names, without dots.)
What is the expected behavior?
Something like HiddenServicePort "443 otherhost:443"
to work.