summaryrefslogtreecommitdiffhomepage
path: root/ipn/localapi
diff options
context:
space:
mode:
Diffstat (limited to 'ipn/localapi')
-rw-r--r--ipn/localapi/disabled_stubs.go30
-rw-r--r--ipn/localapi/pprof.go56
2 files changed, 43 insertions, 43 deletions
diff --git a/ipn/localapi/disabled_stubs.go b/ipn/localapi/disabled_stubs.go
index c744f34d5..230553c14 100644
--- a/ipn/localapi/disabled_stubs.go
+++ b/ipn/localapi/disabled_stubs.go
@@ -1,15 +1,15 @@
-// Copyright (c) Tailscale Inc & AUTHORS
-// SPDX-License-Identifier: BSD-3-Clause
-
-//go:build ios || android || js
-
-package localapi
-
-import (
- "net/http"
- "runtime"
-)
-
-func (h *Handler) serveCert(w http.ResponseWriter, r *http.Request) {
- http.Error(w, "disabled on "+runtime.GOOS, http.StatusNotFound)
-}
+// Copyright (c) Tailscale Inc & AUTHORS
+// SPDX-License-Identifier: BSD-3-Clause
+
+//go:build ios || android || js
+
+package localapi
+
+import (
+ "net/http"
+ "runtime"
+)
+
+func (h *Handler) serveCert(w http.ResponseWriter, r *http.Request) {
+ http.Error(w, "disabled on "+runtime.GOOS, http.StatusNotFound)
+}
diff --git a/ipn/localapi/pprof.go b/ipn/localapi/pprof.go
index 8c9429b31..5cc4daca1 100644
--- a/ipn/localapi/pprof.go
+++ b/ipn/localapi/pprof.go
@@ -1,28 +1,28 @@
-// Copyright (c) Tailscale Inc & AUTHORS
-// SPDX-License-Identifier: BSD-3-Clause
-
-//go:build !ios && !android && !js
-
-// We don't include it on mobile where we're more memory constrained and
-// there's no CLI to get at the results anyway.
-
-package localapi
-
-import (
- "net/http"
- "net/http/pprof"
-)
-
-func init() {
- servePprofFunc = servePprof
-}
-
-func servePprof(w http.ResponseWriter, r *http.Request) {
- name := r.FormValue("name")
- switch name {
- case "profile":
- pprof.Profile(w, r)
- default:
- pprof.Handler(name).ServeHTTP(w, r)
- }
-}
+// Copyright (c) Tailscale Inc & AUTHORS
+// SPDX-License-Identifier: BSD-3-Clause
+
+//go:build !ios && !android && !js
+
+// We don't include it on mobile where we're more memory constrained and
+// there's no CLI to get at the results anyway.
+
+package localapi
+
+import (
+ "net/http"
+ "net/http/pprof"
+)
+
+func init() {
+ servePprofFunc = servePprof
+}
+
+func servePprof(w http.ResponseWriter, r *http.Request) {
+ name := r.FormValue("name")
+ switch name {
+ case "profile":
+ pprof.Profile(w, r)
+ default:
+ pprof.Handler(name).ServeHTTP(w, r)
+ }
+}