metadata: add support for IPv6 variable substitution

could update this