romana / multi-ping

Python library to monitor one or many IP addresses via ICMP echo (ping) requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug when only pinging ipv6 addresses

opened this issue · comments

Hi! I want to ping ipv6 addresses only but when I do I don't get a response before the end of the timeout because it seems to wait in the first part of _read_all_from_socket() for an ipv4.

Example :
mp = MultiPing(['2620:0:ccc::2']) mp.send() a,b=mp.receive(5)

returns
a: {'2620:0:ccc::2': 5.005456924438477} b: []

But, when I run this :
mp = MultiPing(['127.0.0.1', '2620:0:ccc::2']) mp.send() a,b=mp.receive(5)

It returns :
a: {'2620:0:ccc::2': 0.028293848037719727, '127.0.0.1': 0.0002079010009765625} b: []