From 62149658da06efb0540940e749dda7f89505920b Mon Sep 17 00:00:00 2001 From: xusongfu Date: Fri, 10 Dec 2021 14:18:56 +0800 Subject: [PATCH] fix: The default remote ip prefix is ::/0 if ethertype is IPv6 Use different default remote ip prefix between IPv4 and IPv6 Change-Id: I9f851562da8d8b59cc7ecc51ebeaa285076e1831 --- src/resources/security-group-rule.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/security-group-rule.jsx b/src/resources/security-group-rule.jsx index e4b1ba36..bd43dd18 100644 --- a/src/resources/security-group-rule.jsx +++ b/src/resources/security-group-rule.jsx @@ -81,7 +81,7 @@ export const getSelfColumns = (self) => [ title: t('Remote IP Prefix'), dataIndex: 'remote_ip_prefix', render: (value, record) => - value || record.ethertype === 'IPv4' ? '0.0.0.0/0' : '::/0', + value || (record.ethertype === 'IPv4' ? '0.0.0.0/0' : '::/0'), isHideable: true, }, {