You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Howard Gao (Jira)" <ji...@apache.org> on 2023/03/01 02:43:00 UTC
[jira] [Created] (ARTEMIS-4189) NettyConnection.isSameTarget() should compare host names by IPs
Howard Gao created ARTEMIS-4189:
-----------------------------------
Summary: NettyConnection.isSameTarget() should compare host names by IPs
Key: ARTEMIS-4189
URL: https://issues.apache.org/jira/browse/ARTEMIS-4189
Project: ActiveMQ Artemis
Issue Type: Bug
Components: Broker
Affects Versions: 2.28.0
Reporter: Howard Gao
Assignee: Howard Gao
The method just compares the host names using string equals. However when one host name is in IP form (like "10.7.2.2") it should try to resolve the addresses of the host name and make sure they are equal if one of the IP addresses matches. Otherwise it may return wrong comparison result.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)