We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8710e33 commit f3b7054Copy full SHA for f3b7054
python2port.py
@@ -110,14 +110,15 @@ def checkHost(ip, port):
110
111
if ping == True:
112
lst.append("PING SUCCESS")
113
+ # Collect ping statistics only when the host is up
114
+ lst.append(pingStatistics(ip))
115
else:
116
lst.append("PING FAIL")
117
if ipup == True:
118
lst.append("PORT OPEN")
119
120
lst.append("PORT CLOSED")
121
- lst.append(pingStatistics(ip))
122
""" lst.append(ping)
123
lst.append(ipup) """
124
return lst
0 commit comments