How to paste an IPv6 address in Firefox's address bar.

It seems I can't just paste an IPv6 address in Firefox's address bar. Turns out, I need to put it between square brackets.

http://[2a02:2770:17:0:21a:4aff:fedb:7f9b]