Fixed an IPv6 compatibility issue