Detect IPv6 addresses in INI inventory

Prevents parts of the IPv6 address from being interpreted as a port
(for example, :80).

Fixes #3888