feat: support wildcard custom domains in gateway by kvinwang · Pull Request #545 · Dstack-TEE/dstack
Add fallback to `_dstack-app-address-wildcard.{parent}` TXT record
when exact `_dstack-app-address.{sni}` lookup fails. This allows a
single TXT record to route all subdomains of a custom domain to the
same app, while still allowing per-subdomain overrides via exact records.
The else branch used ? operator which returned error immediately on exact lookup failure, preventing the wildcard fallback from executing. Use if-let instead to fall through gracefully.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters