Commit 628f3387 authored by Romain Courteaud's avatar Romain Courteaud

System info

parent d269e895
......@@ -7,6 +7,7 @@ import time
from forcediphttpsadapter.adapters import ForcedIPHTTPSAdapter
import dns.resolver
import miniupnpc
import platform
__version__ = "0.0.3"
......@@ -106,6 +107,16 @@ class WebBot:
def run(self, url):
print(time.strftime("%Y-%m-%d %H:%M:%S"))
print("Platform", platform.platform())
print(
"Python",
platform.python_build(),
platform.python_compiler(),
platform.python_branch(),
platform.python_implementation(),
platform.python_revision(),
platform.python_version(),
)
print("Hostname", socket.gethostname())
myresolver = dns.resolver.Resolver()
print("Resolvers", myresolver.nameservers)
......@@ -114,7 +125,7 @@ class WebBot:
u.discoverdelay = 200
u.discover()
u.selectigd()
print("external ip address: {}".format(u.externalipaddress()))
print("external ip: {}".format(u.externalipaddress()))
try:
self.check(url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment