fix: safe service name for path, nginx hint scope error

This commit is contained in:
2026-05-22 20:19:29 +04:00
parent 99f4b109d5
commit 26398e2e4b
2 changed files with 7 additions and 6 deletions
+5 -5
View File
@@ -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({