HiddenServicePort IPv6 broken

Hi,

In reference to: legacy/trac#6551 (moved) and legacy/trac#12670 (moved).

I was not having much luck setting up a Hidden Service. I found later that worked when I used 127.0.0.1:80 instead of [::1]:80.

I then tested v6 and v4, side-by-side: HiddenServicePort 80 127.0.0.1:80 HiddenServicePort 81 [::1]:80

Port 80 worked, 81 did not. I checked a few times with curl locally and with tor browser.

I'm running FreeBSD 10.2. Had a pretty slim configuration when I tried this. Verified with fetch and sockstat that indeed the service was listening on ::1 (::0/0, actually).

Thank you, Teran

Trac:
Username: sega01