Skip to content

Commit

Permalink
fix multi host traefik v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmeeple authored Mar 19, 2023
1 parent 9e9cb1b commit 904ab0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/usr/sbin/cloudflare-companion
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def check_traefik(included_hosts, excluded_hosts):
value = router["rule"]
if 'Host' in value:
logger.debug("Traefik Router Name: %s rule value: %s", name, value)
extracted_domains = re.findall(r'Host\(\`([a-zA-Z0-9\.\-]+)\`\)', value)
extracted_domains = re.findall(r'\`([a-zA-Z0-9\.\-]+)\`', value)
logger.debug("Traefik Router Name: %s extracted domains from rule: %s", name, extracted_domains)
if len(extracted_domains) > 1:
for v in extracted_domains:
Expand Down

0 comments on commit 904ab0e

Please sign in to comment.