Files
tailscale/tsnet/omit_acme.go
Fredrik Fornwall 3a72a686cb tsnet: fix ts_omit_acme build
Gate certificate fetching on ACME support and return an error when omitted.

Fixes #22250

Change-Id: I709928f1fe11b7f20cc854d299175ca3048c037e
Signed-off-by: Fredrik Fornwall <[email protected]>
2026-11-08 13:47:45 -08:00

17 lines
302 B
Go

// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause
//go:build js || ts_omit_acme
package tsnet
import (
"crypto/tls"
"tailscale.com/feature"
)
func (s *Server) getCert(hi *tls.ClientHelloInfo) (*tls.Certificate, error) {
return nil, feature.ErrUnavailable
}