Skip to content

Commit

Permalink
fix(connections): destination and host
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 1, 2023
1 parent 3b774b9 commit bbfd514
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ export default () => {
{
accessorKey: AccessorKey.Host,
accessorFn: (row) =>
row.metadata.host ? row.metadata.host : row.metadata.destinationIP,
`${
row.metadata.host ? row.metadata.host : row.metadata.destinationIP
}:${row.metadata.destinationPort}`,
},
{
accessorKey: AccessorKey.Rule,
Expand Down Expand Up @@ -192,9 +194,9 @@ export default () => {
{
accessorKey: AccessorKey.Destination,
accessorFn: (row) =>
isIPv6(row.metadata.destinationIP)
? `[${row.metadata.destinationIP}]:${row.metadata.destinationPort}`
: `${row.metadata.destinationIP}:${row.metadata.destinationPort}`,
row.metadata.remoteDestination ||
row.metadata.destinationIP ||
row.metadata.host,
},
]

Expand Down

0 comments on commit bbfd514

Please sign in to comment.