mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-25 19:14:12 +08:00
feat(connection): 添加入站用户列 (#437)
This commit is contained in:
parent
56b2b81548
commit
1ba7700a3f
@ -126,6 +126,7 @@ export enum CONNECTIONS_TABLE_ACCESSOR_KEY {
|
||||
SourceIP = 'sourceIP',
|
||||
SourcePort = 'sourcePort',
|
||||
Destination = 'destination',
|
||||
InboundUser = 'inboundUser',
|
||||
}
|
||||
|
||||
export const CONNECTIONS_TABLE_MAX_CLOSED_ROWS = 200
|
||||
|
@ -38,6 +38,7 @@ export default {
|
||||
sourceIP: 'Source IP',
|
||||
sourcePort: 'Source Port',
|
||||
destination: 'Destination',
|
||||
inboundUser: 'Inbound User',
|
||||
close: 'Close',
|
||||
reset: 'Reset',
|
||||
dnsQuery: 'DNS Query',
|
||||
|
@ -40,6 +40,7 @@ export default {
|
||||
sourceIP: '源地址',
|
||||
sourcePort: '源端口',
|
||||
destination: '目标地址',
|
||||
inboundUser: '入站用户',
|
||||
close: '关闭',
|
||||
reset: '重置',
|
||||
dnsQuery: 'DNS 查询',
|
||||
|
@ -242,6 +242,14 @@ export default () => {
|
||||
original.metadata.destinationIP ||
|
||||
original.metadata.host,
|
||||
},
|
||||
{
|
||||
header: () => t('inboundUser'),
|
||||
accessorKey: CONNECTIONS_TABLE_ACCESSOR_KEY.InboundUser,
|
||||
accessorFn: (original) =>
|
||||
original.metadata.inboundUser ||
|
||||
original.metadata.inboundName ||
|
||||
original.metadata.inboundPort,
|
||||
},
|
||||
]
|
||||
|
||||
const [grouping, setGrouping] = createSignal<GroupingState>([])
|
||||
|
Loading…
x
Reference in New Issue
Block a user