Skip to content

Commit

Permalink
Update filguard_alert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jyma committed Jan 6, 2022
1 parent 3caf62a commit bf815fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filguard_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,10 @@ def net_check(check_type=''):
is_ip_reach = True
ips = net_ip.split('|')
for str in ips:
out = sp.getoutput("timeout 5s telnet "+ str)
out = sp.getoutput("timeout 5s nc -zv "+ str)
print('net_check:')
print(out)
if out.find('Escape')>=0 :
if out.find('succeeded')>=0 :
print("true")
else:
print("false")
Expand Down

0 comments on commit bf815fe

Please sign in to comment.