Skip to content

Commit f70896b

Browse files
authored
Merge pull request #197 from Nextpertise/issue-196
fix: skip endswith guard for regex zones in check_rrset_allowed
2 parents 1d9d664 + a5a90b2 commit f70896b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

powerdns_api_proxy/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def check_rrset_allowed(zone: ProxyConfigZone, rrset: RRSET) -> bool:
155155
if zone.all_records:
156156
return True
157157

158-
if not rrset["name"].rstrip(".").endswith(zone.name.rstrip(".")):
158+
if not zone.regex and not rrset["name"].rstrip(".").endswith(zone.name.rstrip(".")):
159159
logger.debug("RRSET not allowed, because zone does not match")
160160
return False
161161

0 commit comments

Comments
 (0)