From e3024432f95526504f2cadfcfd43efe993ea96ac Mon Sep 17 00:00:00 2001 From: kaffa Date: Fri, 27 Mar 2026 16:18:32 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20anvil.it.com=20=E2=86=92=20inouter.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- haproxy_mcp/tools/domains.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/haproxy_mcp/tools/domains.py b/haproxy_mcp/tools/domains.py index a96b8ff..ca2a2e7 100644 --- a/haproxy_mcp/tools/domains.py +++ b/haproxy_mcp/tools/domains.py @@ -44,8 +44,8 @@ def _get_base_domain(domain: str) -> Optional[str]: Examples (with CUSTOM_TLDS={"it.com"}): inouter.com -> inouter.com (base domain itself) nocodb.inouter.com -> inouter.com - anvil.it.com -> anvil.it.com (base domain, it.com is TLD) - gitea.anvil.it.com -> anvil.it.com + inouter.com -> inouter.com (base domain, it.com is TLD) + gitea.inouter.com -> inouter.com Returns: The base domain, or None if the domain is a TLD itself. @@ -69,7 +69,7 @@ def _check_subdomain(domain: str, registered_domains: set[str]) -> tuple[bool, O """Check if a domain is a subdomain using structural analysis and known domains. Uses three layers of detection: - 1. Registered domains: vault.anvil.it.com is a subdomain if anvil.it.com is registered. + 1. Registered domains: hcv.inouter.com is a subdomain if inouter.com is registered. 2. Certificate domains: nocodb.inouter.com is a subdomain if inouter.com has a cert. 3. Structural analysis: nocodb.inouter.com is deeper than eTLD+1 (inouter.com). @@ -417,7 +417,7 @@ def register_domain_tools(mcp): subdomain (not a base domain). Base domains keep their wildcards. Example: *.nocodb.inouter.com is removed (subdomain of inouter.com), - but *.anvil.it.com is kept (anvil.it.com is a base domain). + but *.inouter.com is kept (inouter.com is a base domain). """ entries = get_map_contents()