API: Fix IPv6 handling in list=blocks