Remove debug prints

This commit is contained in:
Alexandre Aubin 2019-10-10 16:40:06 +02:00
parent 3d7f37176c
commit 02d6a0212f

View file

@ -113,8 +113,10 @@ class IPDiagnoser(Diagnoser):
# So let's try to ping the first 4~5 resolvers (shuffled)
# If we succesfully ping any of them, we conclude that we are indeed connected
def ping(protocol, target):
print("ping -c1 -%s -W 3 %s >/dev/null 2>/dev/null" % (protocol, target))
return os.system("ping -c1 -%s -W 3 %s >/dev/null 2>/dev/null" % (protocol, target)) == 0
random.shuffle(resolvers)
return any(ping(protocol, resolver) for resolver in resolvers[:5])