Skip to content

Java: Exclude loopback address from reverse DNS source #16761

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

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Jun 14, 2024

No description provided.

@owen-mc owen-mc requested a review from a team as a code owner June 14, 2024 13:06
Comment on lines 54 to 59
// GOOD: reverse DNS on loopback address is fine
if (loopback.getCanonicalHostName().equals("localhost")) {
login(user, password); // $ hasConditionalBypassTest
}
if (Inet4Address.getLoopbackAddress().getCanonicalHostName().equals("localhost")) {
login(user, password); // $ hasConditionalBypassTest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are GOOD so they shouldn't have an inline expectation, right?

Copy link
Contributor Author

@owen-mc owen-mc Jun 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! I saw your comment in my IDE as I was puzzling over why the tests were failing and it saved me some time realising what I'd done wrong 😆 .

@owen-mc owen-mc merged commit b0afba4 into github:main Jun 14, 2024
@owen-mc owen-mc deleted the java/reverse-dns-get-loopback-address branch June 14, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants