Merge pull request #3 from niiku-y/develop

Fixed regular expression.
This commit is contained in:
René Moser
2019-07-18 23:38:53 +02:00
committed by GitHub

View File

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