Commit 8c04042d authored by Hermann Krumrey's avatar Hermann Krumrey
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request namibsun/python/status-page!3
parents 189359fb e3dcba45
......@@ -31,6 +31,7 @@ deploy_production:
tags:
- python3
- status-page
- nmap
script:
- python3 -m venv virtual && source virtual/bin/activate && pip install ci-scripts
- deploy-flask $STATUS_PAGE_HOME
......
0.1.1:
- Fixed some nmap-related issues
0.1.0:
- Implement first bit of analytics functionality
0.0.1:
......
......@@ -42,7 +42,7 @@ def port_ping(address: str, port: int) -> bool:
:return: Whether or not the device responds to the ping
"""
try:
response = check_output(["nmap", "-p", str(port), address])
return "open" in response.decode("utf-8")
response = check_output(["nmap", "-p", str(port), address, "-Pn"])
return "Host is up" in response.decode("utf-8")
except CalledProcessError:
return False
0.1.0
\ No newline at end of file
0.1.1
\ No newline at end of file
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