-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix triggering of reverse name lookup #5297
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RabbitChannelNetAttributesGetter
, RabbitReceiveNetAttributesGetter
and ReactorNettyHttpClientAttributesGetter
might have the same issue.
@@ -29,9 +29,6 @@ public final String peerName(REQUEST request, @Nullable RESPONSE response) { | |||
if (address == null) { | |||
return null; | |||
} | |||
if (address.getAddress() != null) { | |||
return address.getAddress().getHostName(); | |||
} | |||
return address.getHostString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe getHostString
may return ip address. I hope spec is ok with this, if it isn't I guess we could compare it with getHostAddress
and return null in case they match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx! I'll fix those in a follow-up, since PR builds for those should be faster than PR builds on this one which touches core classes |
* Fix triggering of DNS lookup * Update test * Update test
Resolves #5295