Update torghostng.py

This commit is contained in:
Git Kern3l 2020-04-24 10:23:15 +07:00 committed by GitHub
parent 3af090922f
commit edfc95038d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,6 +147,7 @@ def check_update():
def check_tor(status): def check_tor(status):
try: try:
print(language.checking_tor, end='', flush=True) print(language.checking_tor, end='', flush=True)
sleep(5)
tor_status = getoutput("curl -s --max-time 20 https://check.torproject.org | grep Congratulations") tor_status = getoutput("curl -s --max-time 20 https://check.torproject.org | grep Congratulations")
sleep(SLEEP_TIME) sleep(SLEEP_TIME)
print(language.done) print(language.done)