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:
copilot-swe-agent[bot]
2026-04-07 12:47:03 +00:00
committed by GitHub
parent 9dcb45a017
commit 6c3bbbf72b
2 changed files with 5 additions and 1 deletions

View File

@@ -685,7 +685,10 @@ def _check_port_status(
for pt in ports_set 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" return "listening"
if is_allowed: if is_allowed:
return "firewall_open" return "firewall_open"

View File

@@ -97,6 +97,7 @@
nixpkgs.config.permittedInsecurePackages = [ "jitsi-meet-1.0.8043" ]; nixpkgs.config.permittedInsecurePackages = [ "jitsi-meet-1.0.8043" ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nftables
git wget fish htop btop git wget fish htop btop
gnomeExtensions.transparent-top-bar-adjustable-transparency gnomeExtensions.transparent-top-bar-adjustable-transparency
gnomeExtensions.dash-to-dock gnomeExtensions.dash-to-dock