Bug in proxy code with IPv6?