feat: add listening ports widget for server stats (#483)

Co-authored-by: Luke Gustafson <88517757+LukeGus@users.noreply.github.com>
This commit was merged in pull request #483.
This commit is contained in:
ZacharyZcR
2026-01-12 15:46:05 +08:00
committed by GitHub
parent d821373b15
commit 2e3f7e10c7
9 changed files with 308 additions and 0 deletions

View File

@@ -7,6 +7,20 @@ export type WidgetType =
| "processes"
| "system"
| "login_stats"
| "ports";
export interface ListeningPort {
protocol: "tcp" | "udp";
localAddress: string;
localPort: number;
state?: string;
pid?: number;
process?: string;
}
export interface PortsMetrics {
source: "ss" | "netstat" | "none";
ports: ListeningPort[];
| "firewall";
export interface FirewallRule {