fix: safe service name for path, nginx hint scope error
This commit is contained in:
+5
-5
@@ -139,11 +139,11 @@ def parse_nginx_config_dump(raw_text, service_ports, service_domain_hints):
|
||||
for hint in service_domain_hints:
|
||||
if hint in server_name:
|
||||
score += 80
|
||||
# wildcard *.domain
|
||||
if hint.startswith("*."):
|
||||
domain = hint.lstrip("*.")
|
||||
if domain in server_name:
|
||||
score += 80
|
||||
# wildcard *.domain
|
||||
if hint.startswith("*."):
|
||||
domain = hint.lstrip("*.")
|
||||
if domain in server_name:
|
||||
score += 80
|
||||
|
||||
if score > 0:
|
||||
related.append({
|
||||
|
||||
Reference in New Issue
Block a user