jackshenonly opened a new issue, #7470:
URL: https://github.com/apache/rocketmq/issues/7470

   ### Is Your Feature Request Related to a Problem?
   
   希望在acl 配置文件中,如下参数whiteRemoteAddress, globalWhiteRemoteAddresses 
,支持hosts域名的配置。
   
   `globalWhiteRemoteAddresses `
    `- 127.0.0.1`
   `- 192.168.3.*`
   
   
   ### Describe the Solution You'd Like
   
   cat /etc/hosts
   
   `127.0.0.1 domain1   `
   `127.0.0.2 domain2  `
   `127.0.0.3 domain3   `
   
   希望达到如下效果
   
   `globalWhiteRemoteAddresses `
    `- domain1`
    `- domain2  `
    `- domain3`
   
   目前这样配置的话,会有AclException
   ```
   public OneRemoteAddressStrategy(String netaddress) {
               this.netaddress = netaddress;
               InetAddressValidator validator = 
InetAddressValidator.getInstance();
               if (!(validator.isValidInet4Address(netaddress) || 
validator.isValidInet6Address(netaddress))) {
                   throw new AclException(String.format("**Netaddress examine 
Exception netaddress** is %s", netaddress));
               }
           }
   ```
   
   ### Describe Alternatives You've Considered
   
   方便配置。
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to