summaryrefslogtreecommitdiffhomepage
path: root/ipn/localapi
diff options
context:
space:
mode:
Diffstat (limited to 'ipn/localapi')
-rw-r--r--ipn/localapi/localapi.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipn/localapi/localapi.go b/ipn/localapi/localapi.go
index 83df7ef0e..195c2e31e 100644
--- a/ipn/localapi/localapi.go
+++ b/ipn/localapi/localapi.go
@@ -921,7 +921,7 @@ func (h *Handler) serveServeConfig(w http.ResponseWriter, r *http.Request) {
// TODO: roll-up this Windows-specific check into either PermitWrite
// or a global admin escalation check.
if shouldDenyServeConfigForGOOSAndUserContext(runtime.GOOS, configIn, h) {
- http.Error(w, "must be a Windows local admin to serve a path", http.StatusUnauthorized)
+ http.Error(w, "must be a local admin to serve a path", http.StatusUnauthorized)
return
}
@@ -941,7 +941,7 @@ func (h *Handler) serveServeConfig(w http.ResponseWriter, r *http.Request) {
}
func shouldDenyServeConfigForGOOSAndUserContext(goos string, configIn *ipn.ServeConfig, h *Handler) bool {
- if goos != "windows" {
+ if !slices.Contains([]string{"windows", "linux"}, goos) {
return false
}
if !configIn.HasPathHandler() {