caddtls: Skip .ts.net domains for ECH (#6971)

As it is also a special case in our automatic HTTPS.
This commit is contained in:
Matthew Holt
2026-01-30 12:24:59 -07:00
parent 7d24124430
commit 935b09de83

View File

@@ -392,6 +392,10 @@ func (t *TLS) publishECHConfigs(logger *zap.Logger) error {
if publication.Domains == nil {
serverNamesSet = make(map[string]struct{}, len(t.serverNames))
for name := range t.serverNames {
// skip Tailscale names, a special case we also handle differently in our auto-HTTPS
if strings.HasSuffix(name, ".ts.net") {
continue
}
serverNamesSet[name] = struct{}{}
}
} else {