Skip to content
Snippets Groups Projects
Verified Commit 9db010ee authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

psutil ubuntu 16.04 compatibility

parent ce79b934
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ def check_listening() -> tuple:
# get listening ports
listening = set(
c.laddr.port for c in net_connections(kind="inet") if c.status == "LISTEN"
c.laddr[1] for c in net_connections(kind="inet") if c.status == "LISTEN"
)
# check that system is listening on this port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment