Bonjour IPv6 addresses are not parsed correctly
In the VLC iOS app, the server field when connecting to a server is prepopulated with the server hostname. The issue is that the first part of an IPv6 is used as the hostname instead of the whole address.
The issue is not present when square brackets are used:
URL(string: "smb://aaaa::aaaa:aaaa:aaaa:aaaa:445")!.host
aaaa
URL(string: "smb://[aaaa::aaaa:aaaa:aaaa:aaaa:445]")!.host
aaaa::aaaa:aaaa:aaaa:aaaa
The issue may only affect iOS 16 and later.