Merge "fix: The default remote ip prefix is ::/0 if ethertype is IPv6"
This commit is contained in:
commit
979fbfe6e5
@ -80,7 +80,8 @@ export const getSelfColumns = (self) => [
|
|||||||
{
|
{
|
||||||
title: t('Remote IP Prefix'),
|
title: t('Remote IP Prefix'),
|
||||||
dataIndex: 'remote_ip_prefix',
|
dataIndex: 'remote_ip_prefix',
|
||||||
render: (value) => value || '0.0.0.0/0',
|
render: (value, record) =>
|
||||||
|
value || record.ethertype === 'IPv4' ? '0.0.0.0/0' : '::/0',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user