k21/reddit — comment on commit b713eca226c21e3202d70d04e329defeb919e237
File: r2/r2/lib/utils/utils.py line 269
By k21:

spladug: they do not have to, because if the link contains IPv6 address, urlparse says that the hostname is the address and it removes the brackets automatically