rocketmq
rocketmq copied to clipboard
[Bug] networkutil code logical errors
Before Creating the Bug Report
-
I found a bug, not just asking a question, which should be created in GitHub Discussions.
-
[X] I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
-
[X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
linux
RocketMQ version
develop
JDK Version
jdk8
Describe the Bug
1,TraceBean: private static final String LOCAL_ADDRESS = UtilAll.ipToIPv4Str(UtilAll.getIP()); getIP mayby ipv6 2,NetworkUtil:if (ip.startsWith("127.0") || ip.startsWith("192.168") || ip.startsWith("0."));Check whether Intranet errors exist 3,0.0.0.0 到 0.255.255.255 通常不用于生产环境,因为它们可能与某些保留的地址或特殊用途的地址重叠。
Steps to Reproduce
Read code logic
What Did You Expect to See?
Read code logic
What Did You See Instead?
No response
Additional Context
No response