Allow ip subdomain part to be prefixed with dash
This is useful so sub-sub-domains can make use of wildcard certificate e.g. myapp-myenvironment-10-9-8-7.mydomain.com
This commit is contained in:
parent
b028209471
commit
04772d4f08
@ -146,7 +146,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}[-.]\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 DEBUG:
|
||||
|
Loading…
Reference in New Issue
Block a user