Skip to content

feat: add `is_hostname` and `is_onion_addr` methods to `TorAddr`

Summary

I've been using arti to add Tor support to some projects, and I think it would be useful to have both is_hostname and is_onion_addr methods for TorAddr.

What is the expected behavior?

Easily match what is the Host variant, as it's not public.