Fix compiler warning when compiling for IPv4.