Ticket40062: Only overwrite onion hostnames when they've changed
This is a patch from @neel, plus unit tests, and a small cleanup on the code logic.
Closes #40062 (closed)
This is a patch from @neel, plus unit tests, and a small cleanup on the code logic.
Closes #40062 (closed)