Skip to content

Conversation

@phanhai27
Copy link

I get the following error: path\site-packages\public_ip\_ip.py", line 74, in get raise ValueError(ValueError: tie between IPv6 and IPv4 among the responses ({first_votes} occurrences each)

I fixed it for IPv4 only like this:

ips = []
while not queue.empty():
        # Fix error comparing IPv6 and IPv4 (if first_votes == second_votes)
        ipx = queue.get()
        if type(ip_address(ipx)) is IPv4Address:
            ips.append(ipx)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant