Fix the incorrect value of $host when IPv6 in Host header