disabled_stubs.go 306 B

123456789101112131415
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build ios || android || js
  4. package localapi
  5. import (
  6. "net/http"
  7. "runtime"
  8. )
  9. func (h *Handler) serveCert(w http.ResponseWriter, r *http.Request) {
  10. http.Error(w, "disabled on "+runtime.GOOS, http.StatusNotFound)
  11. }