mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-12 10:48:36 +00:00
ipn/ipnlocal: attach Tailnet Lock status to bugreports
Fixes tailscale/corp#28524 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:
parent
ffb1dda245
commit
65e005ccaa
@ -397,6 +397,15 @@ func (h *Handler) serveBugReport(w http.ResponseWriter, r *http.Request) {
|
|||||||
// OS-specific details
|
// OS-specific details
|
||||||
h.logf.JSON(1, "UserBugReportOS", osdiag.SupportInfo(osdiag.LogSupportInfoReasonBugReport))
|
h.logf.JSON(1, "UserBugReportOS", osdiag.SupportInfo(osdiag.LogSupportInfoReasonBugReport))
|
||||||
|
|
||||||
|
// Tailnet lock details
|
||||||
|
st := h.b.NetworkLockStatus()
|
||||||
|
if st.Enabled {
|
||||||
|
h.logf.JSON(1, "UserBugReportTailnetLockStatus", st)
|
||||||
|
if st.NodeKeySignature != nil {
|
||||||
|
h.logf("user bugreport tailnet lock signature: %s", st.NodeKeySignature.String())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if defBool(r.URL.Query().Get("diagnose"), false) {
|
if defBool(r.URL.Query().Get("diagnose"), false) {
|
||||||
h.b.Doctor(r.Context(), logger.WithPrefix(h.logf, "diag: "))
|
h.b.Doctor(r.Context(), logger.WithPrefix(h.logf, "diag: "))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user