Skip to content
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

Add check if subtype matches when answering a DNSQuestion #268

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Siedlerchr
Copy link
Contributor

Fixes #267

Signed-off-by: siedlerchr <siedlerkiller@gmail.com>
@Siedlerchr
Copy link
Contributor Author

Failing CI reports something with403 when accessing github api

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Thanks, please find some small review comments below.

@@ -1174,7 +1174,22 @@ public Collection<DNSRecord> answers(DNSRecordClass recordClass, boolean unique,
List<DNSRecord> list = new ArrayList<DNSRecord>();
Copy link
Member

Choose a reason for hiding this comment

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

In order to avoid code duplication, could this method simply call the newly introduced method with subType parameter set to null?

return list;
}

public Collection<DNSRecord> answers(DNSRecordClass recordClass, boolean unique, int ttl, HostInfo localHost, String subType) {
Copy link
Member

Choose a reason for hiding this comment

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

As this is a public method, please add a brief JavaDoc to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Answer should only respond with subtype if requested in question
2 participants