From 86f1ba2c6750a505cb0ec75d0921f88f32af0285 Mon Sep 17 00:00:00 2001 From: Shun Li Date: Fri, 23 Sep 2022 23:35:28 +0800 Subject: [PATCH] add metadata.process to connections --- src/components/connection/connection-item.tsx | 2 ++ src/services/types.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/connection/connection-item.tsx b/src/components/connection/connection-item.tsx index 9a41110..01a9095 100644 --- a/src/components/connection/connection-item.tsx +++ b/src/components/connection/connection-item.tsx @@ -48,6 +48,8 @@ const ConnectionItem = (props: Props) => { {metadata.type} + {metadata.process && {metadata.process}} + {chains.length > 0 && {chains[value.chains.length - 1]}} {chains.length > 0 && {chains[0]}} diff --git a/src/services/types.d.ts b/src/services/types.d.ts index 7aa83ee..ab94609 100644 --- a/src/services/types.d.ts +++ b/src/services/types.d.ts @@ -67,6 +67,7 @@ declare namespace ApiType { sourcePort: string; destinationPort: string; destinationIP?: string; + process?: string; }; upload: number; download: number;