Skip to content

Commit

Permalink
Update DNS Fixer.py
Browse files Browse the repository at this point in the history
adding comments
  • Loading branch information
i5ecure authored Nov 12, 2023
1 parent d6a9f04 commit 011bf80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DNS Fixer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import requests
import os

#at the moment this code only checks if it is running with root privileges and checks your internet connection
url = "https://www.google.com/"
timeout = 5

Expand All @@ -10,8 +10,9 @@
request = requests.get(url, timeout=timeout)
print(request)
print("Connected to the Internet")
#this code is not completed it will be updated with a working cod
except (requests.ConnectionError, requests.Timeout) as exception:
print("No internet connection.")

else:
print("Please run this script with root Privileages.")
print("Please run this script with root Privileages.")

0 comments on commit 011bf80

Please sign in to comment.