From 7314183836f6c9656ce2ed66dec265b22a718962 Mon Sep 17 00:00:00 2001 From: 844392610 <844392610@qq.com> Date: Sun, 12 Sep 2021 22:02:32 +0800 Subject: [PATCH] netadress toUpperCase beforehand --- acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java b/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java index f6e15a48..b3f08098 100644 --- a/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java +++ b/acl/src/main/java/org/apache/rocketmq/acl/common/AclUtils.java @@ -206,6 +206,7 @@ public class AclUtils { } public static String expandIP(String netaddress, int part) { + netaddress = netaddress.toUpperCase(); // expand netaddress int separatorCount = StringUtils.countMatches(netaddress, ":"); int padCount = part - separatorCount; @@ -233,7 +234,7 @@ public class AclUtils { sb.append(":"); } } - return sb.toString().toUpperCase(); + return sb.toString(); } public static T getYamlDataObject(String path, Class clazz) { -- GitLab