feat(dns): DNS_REBINDING_PROTECTION_EXEMPT_HOSTNAMES option

This commit is contained in:
Quentin McGaw
2025-11-14 16:14:23 +00:00
parent 843bf08aa1
commit c7ab5bd34c
3 changed files with 33 additions and 9 deletions

View File

@@ -37,6 +37,7 @@ func (l *Loop) updateFiles(ctx context.Context) (err error) {
IPPrefixes: result.BlockedIPPrefixes,
}
updateSettings.BlockHostnames(result.BlockedHostnames)
updateSettings.SetRebindingProtectionExempt(settings.Blacklist.RebindingProtectionExemptHostnames)
err = l.filter.Update(updateSettings)
if err != nil {
return fmt.Errorf("updating filter: %w", err)