-
This commit is contained in:
parent
c530629d0d
commit
aaa70e51b9
2
utils.py
2
utils.py
@ -16,7 +16,7 @@ def generate_auth_token():
|
|||||||
return secrets.token_urlsafe(32)
|
return secrets.token_urlsafe(32)
|
||||||
|
|
||||||
def ping_client(ip):
|
def ping_client(ip):
|
||||||
response = os.system("ping -c 1 " + ip)
|
response = os.system("ping -c 1 " + ip + "> /dev/null")
|
||||||
|
|
||||||
if response == 0:
|
if response == 0:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user