Display server ip address in flow detail tab

This commit is contained in:
sanlengjingvv 2021-03-22 14:17:02 +08:00
parent 0650f132e9
commit 71ccbd5607
3 changed files with 28 additions and 0 deletions

Binary file not shown.

View File

@ -155,6 +155,22 @@ exports[`Details Component should render correctly 1`] = `
TLSv1.2
</td>
</tr>
<tr>
<td>
Resolved address:
</td>
<td>
192.168.0.1:22
</td>
</tr>
<tr>
<td>
Source address:
</td>
<td>
address:22
</td>
</tr>
</tbody>
</table>
<div />

View File

@ -52,6 +52,18 @@ export function ConnectionInfo({ conn }) {
<td>{conn.alpn_proto_negotiated}</td>
</tr>
)}
{conn.ip_address && (
<tr key="ip_address">
<td>Resolved address:</td>
<td>{conn.ip_address.join(':')}</td>
</tr>
)}
{conn.source_address && (
<tr key="source_address">
<td>Source address:</td>
<td>{conn.source_address.join(':')}</td>
</tr>
)}
</tbody>
</table>
)