compile fix when using ruli, port ruli to ipv6