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 f3b7054 commit b72fe80Copy full SHA for b72fe80
python2port.py
@@ -110,15 +110,16 @@ 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
+ if ping == True:
+ # Collect ping statistics only when the host is up
122
+ lst.append(pingStatistics(ip))
123
""" lst.append(ping)
124
lst.append(ipup) """
125
return lst
0 commit comments