Fix URL forwarding in mixed IPv6/IPv4 environments