Audit of 3560327
This commit is contained in:
@@ -131,6 +131,10 @@ func (m *Manager) servePreview(port int) error {
|
||||
http.Error(w, err.Error(), http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
if who.Node.IsTagged() {
|
||||
http.Error(w, "tagged nodes are not users", http.StatusForbidden)
|
||||
return
|
||||
}
|
||||
r.Header.Set("Tailscale-User-Login", who.UserProfile.LoginName)
|
||||
r.Header.Set("Tailscale-User-Name", who.UserProfile.DisplayName)
|
||||
proxy.ServeHTTP(w, r)
|
||||
|
||||
Reference in New Issue
Block a user