mirror of
https://github.com/caddyserver/caddy.git
synced 2026-02-09 01:59:21 +08:00
caddtls: Skip .ts.net domains for ECH (#6971)
As it is also a special case in our automatic HTTPS.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user