Merge pull request #6 from burbon/master

Allow ip subdomain part to be prefixed with dash
This commit is contained in:
René Moser
2020-05-31 12:17:08 +02:00
committed by GitHub

View File

@@ -146,7 +146,7 @@ class DynamicBackend:
def handle_subdomains(self, qname): def handle_subdomains(self, qname):
subdomain = qname[0:qname.find(self.domain) - 1] subdomain = qname[0:qname.find(self.domain) - 1]
match = re.findall('^(?:.+\.)?(\d{1,3}[-.]\d{1,3}[-.]\d{1,3}[-.]\d{1,3})$', subdomain) match = re.findall('^(?:.+[-.])?(\d{1,3}[-.]\d{1,3}[-.]\d{1,3}[-.]\d{1,3})$', subdomain)
if not match: if not match:
if DEBUG: if DEBUG: