mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 19:24:12 +08:00
fix(connections): destination and host
This commit is contained in:
parent
3b774b9423
commit
bbfd5142a3
@ -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,
|
||||
@ -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,
|
||||
},
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user