Commit 67b83be7 authored by nanahira's avatar nanahira

fix

parent 5e69d5be
Pipeline #37865 passed with stages
in 1 minute and 29 seconds
......@@ -37,8 +37,9 @@ def parse_host(host: str) -> Tuple[str, int]:
def match_route(hostname: str):
hostname_stripped = hostname.split(':')[0] # Strip port if present
for route in CONFIG["routes"]:
if fnmatch.fnmatch(hostname, route["match"]):
if fnmatch.fnmatch(hostname_stripped, route["match"]):
return route
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment