Fix get_ip_addresses filtering by only_public

- get_ip_addresses filtering by only_public