8000 dnsmasq: Fix wildcard host handling by Monviech · Pull Request #8734 · opnsense/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dnsmasq: Fix wildcard host handling #8734

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
May 30, 2025
Merged

dnsmasq: Fix wildcard host handling #8734

merged 5 commits into from
May 30, 2025

Conversation

Monviech
Copy link
Member

Fixes: #8731

@Monviech Monviech requested a review from AdSchellevis May 28, 2025 09:42
@Monviech Monviech self-assigned this May 28, 2025
@Monviech Monviech marked this pull request as draft May 28, 2025 10:38
@Monviech
Copy link
Member Author

Still have to check one more thing so draft until later.

@Monviech Monviech marked this pull request as ready for review May 28, 2025 11:09
@Monviech
Copy link
Member Author

Okay done.

Copy link
Member
@AdSchellevis AdSchellevis left a comment

Choose a reason for hiding this comment

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

@Monviech some remarks, but in general I have no objections (we just need to add HostWildcardAllowed to the hostname field)

@@ -54,6 +58,26 @@ domain={{dnsmasq.dhcp.domain|default(system.domain)}}
local=/{{ domain }}/
{% endfor %}
{% endif %}
{% if all_wildcard_hosts %}
Copy link
Member

Choose a reason for hiding this comment

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

we can probably ditch the if here as an empty list won't yield output anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to show the comment block conditionally in the rendered config.

Co-authored-by: Ad Schellevis <AdSchellevis@users.noreply.github.com>
@Monviech Monviech requested a review from AdSchellevis May 30, 2025 07:59
@Monviech Monviech merged commit a611a19 into master May 30, 2025
@Monviech Monviech deleted the dnsmasq-wildcard-host branch May 30, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

dnsmasq: Fix wildcard handling in HostOverride and dhcp-host
2 participants
0