Fix Hub false closed port detection: is_listening alone is sufficient; add nftables package
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/b57cc894-c639-400e-93f0-c1dc5d48870b Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9dcb45a017
commit
6c3bbbf72b
@@ -685,7 +685,10 @@ def _check_port_status(
|
||||
for pt in ports_set
|
||||
)
|
||||
|
||||
if is_listening and is_allowed:
|
||||
# A process bound to the port is the authoritative signal; firewall
|
||||
# detection (nft/iptables) is only used as a secondary hint when nothing
|
||||
# is listening yet.
|
||||
if is_listening:
|
||||
return "listening"
|
||||
if is_allowed:
|
||||
return "firewall_open"
|
||||
|
||||
Reference in New Issue
Block a user