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

System info

parent d269e895
...@@ -7,6 +7,7 @@ import time ...@@ -7,6 +7,7 @@ import time
from forcediphttpsadapter.adapters import ForcedIPHTTPSAdapter from forcediphttpsadapter.adapters import ForcedIPHTTPSAdapter
import dns.resolver import dns.resolver
import miniupnpc import miniupnpc
import platform
__version__ = "0.0.3" __version__ = "0.0.3"
...@@ -106,6 +107,16 @@ class WebBot: ...@@ -106,6 +107,16 @@ class WebBot:
def run(self, url): def run(self, url):
print(time.strftime("%Y-%m-%d %H:%M:%S")) 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()) print("Hostname", socket.gethostname())
myresolver = dns.resolver.Resolver() myresolver = dns.resolver.Resolver()
print("Resolvers", myresolver.nameservers) print("Resolvers", myresolver.nameservers)
...@@ -114,7 +125,7 @@ class WebBot: ...@@ -114,7 +125,7 @@ class WebBot:
u.discoverdelay = 200 u.discoverdelay = 200
u.discover() u.discover()
u.selectigd() u.selectigd()
print("external ip address: {}".format(u.externalipaddress())) print("external ip: {}".format(u.externalipaddress()))
try: try:
self.check(url) 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