chore: anvil.it.com → inouter.com
Some checks failed
CI/CD / build-and-deploy (push) Has been cancelled

This commit is contained in:
2026-03-27 16:18:32 +00:00
parent 57ff3dc4fa
commit e3024432f9

View File

@@ -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()