fix: The default remote ip prefix is ::/0 if ethertype is IPv6

Use different default remote ip prefix between IPv4 and IPv6

Change-Id: I6b50000c0acdeb7956ee9343c295ed62493f7095
This commit is contained in:
xusongfu 2021-12-09 14:23:53 +08:00
parent 1834f92c8a
commit f562454c5f

View File

@ -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,
}, },
{ {