feat: retrieve listening processes in firewall port page by HynoR · Pull Request #11665 · 1Panel-dev/1Panel

@HynoR

What this PR does / why we need it?

#11414

Summary of your change

  • 移除 useStats 检查端口是否使用的逻辑,每个端口都得 net.listen 检测,挺麻烦
  • 直接扫一遍 inet 链接,过滤在监听的链接
  • 前端调用 listening 接口后,映射到防火墙上

image image

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@HynoR

@HynoR

@f2c-ci-robot

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@HynoR

@f2c-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ssongliu for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@HynoR HynoR marked this pull request as ready for review

January 16, 2026 07:30