mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-28 09:43:59 +00:00
Show the source and destination IP in the entry feed (#485)
This commit is contained in:
@@ -84,7 +84,14 @@
|
||||
padding: 4px
|
||||
padding-left: 12px
|
||||
|
||||
.port
|
||||
.tcpInfo
|
||||
font-size: 12px
|
||||
color: $secondary-font-color
|
||||
margin: 5px
|
||||
margin-top: 5px
|
||||
margin-bottom: 5px
|
||||
|
||||
.port
|
||||
margin-right: 5px
|
||||
|
||||
.ip
|
||||
margin-left: 5px
|
||||
|
||||
@@ -171,7 +171,17 @@ export const EntryItem: React.FC<EntryProps> = ({entry, setFocusedEntryId, style
|
||||
}
|
||||
<div className={styles.separatorRight}>
|
||||
<span
|
||||
className={`queryable ${styles.port}`}
|
||||
className={`queryable ${styles.tcpInfo} ${styles.ip}`}
|
||||
title="Source IP"
|
||||
onClick={() => {
|
||||
updateQuery(`src.ip == "${entry.sourceIp}"`)
|
||||
}}
|
||||
>
|
||||
{entry.sourceIp}
|
||||
</span>
|
||||
<span className={`${styles.tcpInfo}`}>:</span>
|
||||
<span
|
||||
className={`queryable ${styles.tcpInfo} ${styles.port}`}
|
||||
title="Source Port"
|
||||
onClick={() => {
|
||||
updateQuery(`src.port == "${entry.sourcePort}"`)
|
||||
@@ -199,7 +209,17 @@ export const EntryItem: React.FC<EntryProps> = ({entry, setFocusedEntryId, style
|
||||
/>
|
||||
}
|
||||
<span
|
||||
className={`queryable ${styles.port}`}
|
||||
className={`queryable ${styles.tcpInfo} ${styles.ip}`}
|
||||
title="Destination IP"
|
||||
onClick={() => {
|
||||
updateQuery(`dst.ip == "${entry.destinationIp}"`)
|
||||
}}
|
||||
>
|
||||
{entry.destinationIp}
|
||||
</span>
|
||||
<span className={`${styles.tcpInfo}`}>:</span>
|
||||
<span
|
||||
className={`queryable ${styles.tcpInfo} ${styles.port}`}
|
||||
title="Destination Port"
|
||||
onClick={() => {
|
||||
updateQuery(`dst.port == "${entry.destinationPort}"`)
|
||||
|
||||
Reference in New Issue
Block a user